?replace
Something like this should work replace(df1, is.na(df1), "000/000") --- On Tue, 5/4/10, Nevil Amos <nevil.a...@gmail.com> wrote: > From: Nevil Amos <nevil.a...@gmail.com> > Subject: [R] How to replace all <NA> values in a data.frame with another ( > not 0) value > To: r-h...@stat.math.ethz.ch > Received: Tuesday, May 4, 2010, 8:54 AM > I need to replace <NA> > occurrences in multiple columnsĀ in a data.frame with > "000/000" > > how do I achieve this? > > Thanks > > Nevil Amos > > ______________________________________________ > R-help@r-project.org > 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. > ______________________________________________ R-help@r-project.org 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.