Replace NaN with 0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Replace NaN with 0

garima_sharma
I need help with replacing NaN with zero (the value '0') in my dataset.

How can I do this?

Thanks

Garima Sharma
Reply | Threaded
Open this post in threaded view
|

Re : Replace NaN with 0

Pascal Oettli-2
Hi,

try ?is.nan

Regards


----- Mail original -----
De : garima_sharma <[hidden email]>
À : [hidden email]
Cc :
Envoyé le : Jeudi 29 mars 2012 18h19
Objet : [R] Replace NaN with 0

I need help with replacing NaN with zero (the value '0') in my dataset.

How can I do this?

Thanks

Garima Sharma

--
View this message in context: http://r.789695.n4.nabble.com/Replace-NaN-with-0-tp4514894p4514894.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
[hidden email] 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.


______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Replace NaN with 0

David Winsemius
In reply to this post by garima_sharma

On Mar 29, 2012, at 5:19 AM, garima_sharma wrote:

> I need help with replacing NaN with zero (the value '0') in my  
> dataset.
>
> How can I do this?

Search on: "replace NaN with zero"

http://markmail.org/search/?q=list%3Aorg.r-project.r-help+%22replace+NaN+with+zero%22

--
David Winsemius, MD
West Hartford, CT

______________________________________________
[hidden email] 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.