[R] Help wit matrices
jrkrideau at yahoo.ca
Fri Aug 10 20:26:57 CEST 2007
Will something like this help?
mm <- matrix(rnorm(100),nrow=10)
nn <- mm >.5
--- Lanre Okusanya <lanre.okusanya at gmail.com> wrote:
> Hello all,
> I am working with a 1000x1000 matrix, and I would
> like to return a
> 1000x1000 matrix that tells me which value in the
> matrix is greater
> than a theshold value (1 or 0 indicator).
> i have tried
> but that returns a 1:100000 matrix.
> I have also tried for loops, but they are grossly
> THanks for all your help in advance.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help