From: Spencer Graves (spencer.graves@pdf.com)
Date: Thu 20 Mar 2003 - 06:49:13 EST
Message-id: <3E78C9B9.1050005@pdf.com>
> 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@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@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:25 EST