[R] Complex binning?

Mark Knecht markknecht at gmail.com
Fri Sep 11 02:16:58 CEST 2009


Thanks Bert,
   I've used reshape a bit but hadn't considered it for this need.
plyr is new to me so I'll check it out.

   I think the hard part in my case is designing the bins. I have some
continuous signals for which I don't know how many bins I want to
break each into. I'd like to be able to sort of on the fly chose 4, 5,
6 or 7 different values and get bins between each consecutive value,
and also above and below. I'll look at the plyr docs to see if it can
do that.

Thanks again,
Mark

On Thu, Sep 10, 2009 at 4:22 PM, Bert Gunter <gunter.berton at gene.com> wrote:
> packages:
>
> plyr
> reshape  (the package, not the base R function)
>
> There may well be others...
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of Mark Knecht
> Sent: Thursday, September 10, 2009 3:55 PM
> To: r-help
> Subject: [R] Complex binning?
>
> Hi,
>   I need to do some binning which to date I've done just writing
> subset commands. I'm now wondering if there are any good packages that
> have some good pre-designed functions for multi-variable binning using
> say 4 or 5 variables, sometimes binning on 3 or more levels of each
> variable, and then supporting some sort of reporting mechanism to tell
> me how many data points fell into each bin?
>
>   I'm getting sort of tired of writing and debugging long logic equations!
> :-)
>
> Thanks,
> Mark
>
> ______________________________________________
> 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.
>
>




More information about the R-help mailing list