search for: s1ints

Displaying 1 result from an estimated 1 matches for "s1ints".

Did you mean: points
2011 Mar 30
6
Quick recode of -999 to NA in R
.... What's the most efficient way to do this? Below is what I'm presently doing, which is inefficient. Thanks, Chris dat0 <- read.table("time1.dat") colnames(dat0) <- c("e1dq", "e1arcp", "e1dev", "s1prcp", "s1nrcp", "s1ints", "a1gpar", "a1pias", "a1devt") dat0[dat0$e1dq==-999.00000000,"e1dq"] <- NA dat0[dat0$e1arcp==-999.00000000,"e1arcp"] <- NA dat0[dat0$e1dev==-999.00000000,"e1dev"] <- NA dat0[dat0$s1prcp==-999.00000000,"s1prcp"]...