--- downunder <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have to recode some values in a dataset. for > example changing all zeros to > "." or 999 would be also ok. does anybody know how > to do this? thanks in > advance. lars
Hi Lars. Marc has warned you about . 999 vs NA A couple of approachs: aa <- c(2,3,5,7,7, 3) aa[aa==7] <- 5 aa or library(car) ?recode ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
