[R] delete a row in a matrix
Benilton Carvalho
bcarvalh at jhsph.edu
Mon Nov 19 21:41:56 CET 2007
theMatrix = matrix(1:100, nc=5)
theMatrixWithoutRow5 = theMatrix[-5,]
b
On Nov 19, 2007, at 3:35 PM, Barb, Jennifer (NIH/CIT) [E] wrote:
> Can anyone tell me how to delete a row in a matrix? I have searched
> around and couldn't find a straightforward way to do this.
>
> Thanks, any help will be greatly appreciated.
>
> Jennifer
>
>
>
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list