Skip to content

Error in help file for quantile()

3 messages · Rob Hyndman, (Ted Harding), Duncan Murdoch

#
On 29-Mar-09 20:43:33, Rob Hyndman wrote:
True enough -- in that if, as in the default, na.rm == FALSE,
then applying quantile() to a vector with NAs yields the error
message:

quantile(X1)
# Error in quantile.default(X1) : 
#   missing values and NaN's not allowed if 'na.rm' is FALSE

So either you have na.rm==TRUE, in which case it doesn't need
saying that "Missing values are ignored" (unless you really
want to spell it out in the form "Missing values are ignored if
called with na.rm=TRUE; otherwise an error message is produced"),
or you have na.rm==FALSE, in which case you get the error message
and know where you stand.

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 29-Mar-09                                       Time: 23:08:50
------------------------------ XFMail ------------------------------
#
On 29/03/2009 5:43 PM, Rob Hyndman wrote:
Thanks, I'll fix that.

Duncan Murdoch