[R] replace NA value with 0

(Ted Harding) Ted.Harding at manchester.ac.uk
Fri Sep 14 11:59:47 CEST 2007


On 14-Sep-07 09:22:36, S Ellison wrote:
> Being a chemist, I have to confess that I can't always tell
> that what I'm about to attempt is barking, trivial, uninteresting
> or better done a completely different way; myself, I'd rather be
> warned too often than left to dig my own pit and fall into it ... 
> 
> On NA's vs zero, I usually have the reverse problem in my corner
> of the world; folk will often call nondetects 'missing', which is
> also often a silly thing to do; nondetect means 'I looked and it
> was too low to see' but NA means 'I didn't look'. All that leaves
> me a bit nervous about replacing NA with 0 and vice versa ... hence
> the knee-jerk. Apologies if I'm teaching egg-sucking to an expert. 
> 
> S

On the contrary! It adds to our "collective wisdom".

We all have to suck eggs, and usually can successfully perform the act.
But it is useful to learn about people's experiences of when it is wise
to spit out the result.

Thanks, and best wishes,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 14-Sep-07                                       Time: 10:59:42
------------------------------ XFMail ------------------------------



More information about the R-help mailing list