I have a matrix with some very funky data. I want to drop the columns
with a mean > 1 (for instance).
#Example:
my.mat <- matrix(rnorm(100, 0, 3), nrow = 10)

#I know I can get the row means:
apply(my.mat,1, mean)

I think I need to get a vector that has those rows > 1

my.mat[-rows>1,]

The actual querry is much more complicated but this gives an approximation.

Thanks.









Promote security and make money with the Hushmail Affiliate Program:

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to