Re: [Rd] nlevels() is 0 and not NA

2007-04-24 Thread Prof Brian Ripley
On Tue, 24 Apr 2007, Duncan Murdoch wrote: > On 4/24/2007 4:58 AM, Torsten Hothorn wrote: >>> nlevels(c("a", "b")) >> [1] 0 >> >> but the documentation in R 2.5.0 (and earlier) says >> >> If the argument is not a 'factor', 'NA' is returned. >> >> I hope it isn't too late, I only came across t

Re: [Rd] nlevels() is 0 and not NA

2007-04-24 Thread Duncan Murdoch
On 4/24/2007 4:58 AM, Torsten Hothorn wrote: >> nlevels(c("a", "b")) > [1] 0 > > but the documentation in R 2.5.0 (and earlier) says > > If the argument is not a 'factor', 'NA' is returned. > > I hope it isn't too late, I only came across this in a lecture this > morning. It's too late f

[Rd] nlevels() is 0 and not NA

2007-04-24 Thread Torsten Hothorn
> nlevels(c("a", "b")) [1] 0 but the documentation in R 2.5.0 (and earlier) says If the argument is not a 'factor', 'NA' is returned. I hope it isn't too late, I only came across this in a lecture this morning. Best, Torsten __ R-devel@r-p