[R] delete selecting rows and columns
jastar
mswierniak at o2.pl
Tue Mar 6 08:46:54 CET 2007
I mean something like in MATLAB matrix(sel_r,:)=[]
jastar wrote:
>
> 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#a9327427
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list