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

______________________________________________
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.

Reply via email to