Re: [R] Histogram binning

2008-08-19 Thread jim holtman
Is this what you want: cuts <- c(0,209,429,719,1500) x <- runif(1000,0,1447) barplot(table(cut(x, breaks=cuts))) On Tue, Aug 19, 2008 at 4:17 PM, Ben Cox <[EMAIL PROTECTED]> wrote: > I am trying to produce frequencies in defined intervals however I can't seem > to figure out how to get R to bin

[R] Histogram binning

2008-08-19 Thread Ben Cox
I am trying to produce frequencies in defined intervals however I can't seem to figure out how to get R to bin my data the way I want it to. I have several thousand lengths of fish that I want to be binned as follows: Ex. Length Bin 209 200 219 210 431