[R] What is SAS options missing=0 equivalent in R?

Ista Zahn istazahn at gmail.com
Tue Apr 2 16:56:44 CEST 2013


google "r replace NA with 0" (without the quotes).

On Tue, Apr 2, 2013 at 10:49 AM, ramoss <ramine.mossadegh at 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 at 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.



More information about the R-help mailing list