[R] cut2 once, bin twice...

sdanzige sam.danziger at gmail.com
Fri Oct 23 06:19:56 CEST 2009


Hello,

I'm using the Hmisc cut2 function to bin a set of data.  It produces bins
that I like with results like this:

[96,270]:171
[69, 96): 54
[49, 69): 40
[35, 49): 28
[28, 35): 14
[24, 28):  8
(Other) : 48

I would like to take a second set of data, and assign it to bins based on
factors defined by my call to cut 2.

Does anyone know how I can do this?

Thank you,
-S
-- 
View this message in context: http://www.nabble.com/cut2-once%2C-bin-twice...-tp26020736p26020736.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list