[Rd] table() with option "exclude=NULL" (PR#2491)
kjetil brinchmann halvorsen
kjetil@entelnet.bo
Sat Jan 25 00:46:02 2003
On 24 Jan 2003 at 20:22, ripley@stats.ox.ac.uk wrote:
> It's a feature, as a few seconds' exploration would have confirmed.
>
> > x <- table(c(2,NA,1,1,1,NaN),exclude=NULL)
> > names(x)
> [1] "1" "2" NA "NaN"
>
> so R *does* label them, and as (unlike NaNs) it does not know what they
> are, it *prints* them as blanks. (I wanted to change that but there was
> resistance.)
Why there were resistance? This seems like an obvious betterment!
Kjetil Halvorsen