Re: [R] Help with Hmisc, cut2, split and quantile

2010-03-08 Thread Peter Ehlers
On 2010-03-08 18:00, Guy Green wrote: Hi Peter& others, Thanks (Peter) - that gets me really close to what I was hoping for. The one problem I have is that the "cut" approach breaks the data into intervals based on the absolute value of the "Target" data, rather than their frequency. In othe

Re: [R] Help with Hmisc, cut2, split and quantile

2010-03-08 Thread Guy Green
Hi Peter & others, Thanks (Peter) - that gets me really close to what I was hoping for. The one problem I have is that the "cut" approach breaks the data into intervals based on the absolute value of the "Target" data, rather than their frequency. In other words, if the data ranged from 0 to 50

Re: [R] Help with Hmisc, cut2, split and quantile

2010-03-08 Thread David Freedman
try as.numeric(read_data$DEC) this should turn it into a numeric variable that you can work with hth David Freedman CDC, Atlanta Guy Green wrote: > > Hi Peter & others, > > Thanks (Peter) - that gets me really close to what I was hoping for. > > The one problem I have is that the "cut" app

Re: [R] Help with Hmisc, cut2, split and quantile

2010-03-08 Thread Peter Ehlers
On 2010-03-08 8:47, Guy Green wrote: Hello, I have a set of data with two columns: "Target" and "Actual". A http://n4.nabble.com/file/n1584647/Sample_table.txt Sample_table.txt is attached but the data looks like this: Actual Target -0.125 0.016124906 0.135 0.120799865 ...

[R] Help with Hmisc, cut2, split and quantile

2010-03-08 Thread Guy Green
Hello, I have a set of data with two columns: "Target" and "Actual". A http://n4.nabble.com/file/n1584647/Sample_table.txt Sample_table.txt is attached but the data looks like this: Actual Target -0.125 0.016124906 0.135 0.120799865 ... ... ... ... I want t