From tlumley@u.washington.edu  Wed Oct 16 01:14:52 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Tue, 15 Oct 2002 17:14:52 -0700 (PDT)
Subject: cut() on NA gives 0 when labels=F
In-Reply-To: <15788.39971.929286.111207@gargle.gargle.HOWL>
Message-ID: <Pine.A41.4.44.0210151714220.123024-100000@homer39.u.washington.edu>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


cut() on NA gives 0 when labels=F
Thomas Lumley