Skip to content
Prev 275822 / 398502 Next

Faster process for creating a matrix based on matrix element comparison

[,1] [,2] [,3]
[1,]    0    0    1
[2,]    0    1    0
[3,]    0    1    1
[4,]   NA    1    1

1 - is.na(dat)

     [,1] [,2] [,3]
[1,]    1    1    1
[2,]    1    1    1
[3,]    1    1    1
[4,]    0    1    1

D.
On Fri, Oct 28, 2011 at 11:40 AM, Evgenia <evgts at aueb.gr> wrote: