[R] Deleting multiple rows from a matrix

From: Gottfried Gruber <gottfried.gruber_at_terminal.at>
Date: Wed 25 May 2005 - 17:55:05 EST


Hi,

i want to delete multiple rows from a matrix. I know how to delete one by x=x[,-3] # deleting 3. column

Is there a quick method how to delete e.g. the 3., 5., 7. and 8. column at once?

TiA gg

-- 
---------------------------------------------------
Gottfried Gruber
mailto:gottfried.gruber@terminal.at
www: http://gogo.sehrsupa.net

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed May 25 17:54:20 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:03 EST