[R]

Spencer Graves spencer.graves at pdf.com
Wed Mar 19 20:49:13 CET 2003


 > A <- array(1:6, dim=c(2,3))
 > A[,-2]
      [,1] [,2]
[1,]    1    5
[2,]    2    6

Is this what you want?
Spencer Graves

volkswirt at gmx.net wrote:
> Dear Colleagues!   
> Could you please tell me a command to remove a row or collumn from a 
> matrix, to gain from e.g.: 
> 1 2 3 4 5 
> 6 7 8 9 0 
>  
> e.g.: 
> 1 3 4 5 
> 6 8 9 0 
>  
> Thank you in advance.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list