[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    [R] delete selecting rows and columns
From:       jastar <mswierniak () o2 ! pl>
Date:       2007-02-28 13:12:46
Message-ID: 9203533.post () talk ! nabble ! com
[Download RAW message or body]


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.

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic