[R] delete selecting rows and columns

jastar mswierniak at o2.pl
Wed Feb 28 14:12:46 CET 2007


Hi,
I'm working with a big square matrix (15k x 15k) and I have some trouble.
I want to delete selecting rows and columns.
I'm using something like this:

> sel_r=c(15,34,384,985,4302,6213)
> sel_c=c(3,151,324,3384,7985,14302)
> matrix=matrix[-sel_r,-sel_c]

but it works very slow.
Does anybody know how to make it in faster way?
Thank's
-- 
View this message in context: http://www.nabble.com/delete-selecting-rows-and-columns-tf3308726.html#a9203533
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list