google "r replace NA with 0" (without the quotes). On Tue, Apr 2, 2013 at 10:49 AM, ramoss <ramine.mossad...@finra.org> wrote: > I have a dataframe & wish to convert the NA (missing values) to zero . In SAS > I would use options missing=0 to convert all my obs in a dataset. How can I > accomplish the same thing in R? Can it be done? Thanks for any thoughts on > this. > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/What-is-SAS-options-missing-0-equivalent-in-R-tp4663090.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.