[R] Problem with cut

From: <Jussi.Lehto_at_ubs.com>
Date: Fri, 22 Feb 2008 13:21:28 +0000


Hi All,

I might misunderstood how cut works. But following behaviour surprises me.

vv <- seq(150, 346, by= 4)
cc <- cut(vv, 12)
cc[vv == 330]
Results [1] (330,346]

I would have expected 330 to fall into (313,330] category.

Can you please advice what do I do wrong?

Many Thanks,
Jussi Lehto

Visit our website at http://www.ubs.com

This message contains confidential information and is in...{{dropped:29}}



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 22 Feb 2008 - 13:26:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 23 Feb 2008 - 00:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive