[R] Matrix manipulation - dropping rows based on a query
monkeychump at hushmail.com
Tue Jul 22 19:53:09 CEST 2003
I have a matrix with some very funky data. I want to drop the columns
with a mean > 1 (for instance).
my.mat <- matrix(rnorm(100, 0, 3), nrow = 10)
#I know I can get the row means:
I think I need to get a vector that has those rows > 1
The actual querry is much more complicated but this gives an approximation.
Promote security and make money with the Hushmail Affiliate Program:
More information about the R-help