Skip to content
Prev 32087 / 63424 Next

quantile and IQR do not check for numeric input (PR#13631)

Dear Thomas,
On Mon, Mar 30, 2009 at 1:50 PM, Thomas Lumley <tlumley at u.washington.edu> wrote:
in the original thread  I initiated the matters were two (at least in
my intention)

1. quantile() and IQR() do not check for numeric input whereas
median() has a check (for a factor input). This has nothing to deal
with ordered factors

2. the opportunity of having methods for ordered factors for
quantile() and the like.

If, for some reason, you think that it is ok to have such check for
median but not for quantile and IQR then take this as a wishlist. BTW
also var() and the like do not check for factor input while mean() has
the check.
[1] a b c d e f g h i
Levels: a b c d e f g h i
[1] NA
Warning message:
In mean.default(x) : argument is not numeric or logical: returning NA
[1] 7.5


Regards

Simone