[R] How to replace NA with zero (0)
Rolf Turner
rolf.turner at xtra.co.nz
Fri May 4 01:38:26 CEST 2012
On 04/05/12 03:43, Christopher Kelvin wrote:
> Hello,
> When i generate data with the code below there appear NA as part of the generated data, i prefer to have zero (0) instead of NA on my data.
> Is there a command i can issue to replace the NA with zero (0) even if it is after generating the data?
<SNIP>
Just ***DON'T***. NAs and zeroes are completely different concepts.
You will simply confuse everybody including yourself.
cheers,
Rolf Turner
More information about the R-help
mailing list