Displaying 1 result from an estimated 1 matches for "tp2278863p2279677".
2010 Jul 06
1
information reduction-database management question
If you redefine your NAs as below to be detected as some arbitrary large
number, then the code should work through. Any 5's left in your dataset can
be replaced just as easily by NAs again. Not elegant, but effective.
site <- c("s1", "s1", "s1", "s2","s2", "s2")
pref <- c(1, 2, 3, 1, 2, 3)
R1 <- c(NA, NA, 1, NA,NA,NA)
R2