Hi Harold,
Many (most?) of the statistics function have a similar argument. I
suspect it is sort of to warn the user---you have to be explicit about
it rather than the program just silently removing or ignoring values
that would not work in the function called. I can think of one
example where I
On 12/07/2011 12:26 PM, Doran, Harold wrote:
This is just posed out of curiosity, (not as a criticism per se). But what is
the functional role of the argument na.rm inside the mean() function? If there
are missing values, mean() will always return an NA as in the example below.
But, is there e
In SQL, the default is to ignore NULL (equivalent to NA in R).
However, it can be dangerous to fail to verify how much data was actually used
in an aggregation, so the logic behind the default na.rm setting may be one of
encouraging the user to take responsibility for missing data.
-
3 matches
Mail list logo