Re: [R] Problem with cut

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Fri, 22 Feb 2008 12:59:36 -0300

Is to show the categorys which contains '330'

On 22/02/2008, Heinz Tuechler <tuechler_at_gmx.at> wrote:
> At 15:22 22.02.2008, Henrique Dallazuanna wrote:
> >Try this:
> >
> >grep("330", levels(cc), value=T)
>
>
> Could you please explain in a little more detail,
> how this answers the original question?
>
> "I would have expected 330 to fall into (313,330] category.
> Can you please advice what do I do wrong?"
>
>
> Thank you
>
>
> Heinz
>
>
>
> >On 22/02/2008, Jussi.Lehto_at_ubs.com <Jussi.Lehto_at_ubs.com> wrote:
> > > 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.
> > >
> > >
> >
> >
> >--
> >Henrique Dallazuanna
> >Curitiba-Paraná-Brasil
> >25° 25' 40" S 49° 16' 22" O
> >
> >______________________________________________
> >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.
>
>
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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 - 16:03:30 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