cut() on NA gives 0 when labels=F

Thomas Lumley tlumley@u.washington.edu
Tue, 15 Oct 2002 17:14:52 -0700 (PDT)


On Tue, 15 Oct 2002, David Brahm wrote:

> Apologies ahead of time if it's already fixed in R 1.6.0 and/or already known
> (perhaps related to PR#1694?).  If others agree it's a bug I'll submit it.

In R 1.6.0
> cut(c(2,NA), 1:5, labels=FALSE)
[1]  1 NA

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._