From hothorn at hothorn.de  Tue Apr 24 10:58:26 2007
From: hothorn at hothorn.de (Torsten Hothorn)
Date: Tue, 24 Apr 2007 10:58:26 +0200 (CEST)
Subject: [Rd] nlevels(<no factor>) is 0 and not NA
Message-ID: <Pine.LNX.4.64.0704241056070.7612@localhost.localdomain>


> 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



[Rd] nlevels(<no factor>) is 0 and not NA
Torsten Hothorn