[R] Deleting multiple rows from a matrix

Gottfried Gruber gottfried.gruber at terminal.at
Wed May 25 09:55:05 CEST 2005


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 at terminal.at
www: http://gogo.sehrsupa.net




More information about the R-help mailing list