[R] Getting Break Points From Hist Function?

Ott Toomet otoomet at econ.dk
Thu Dec 5 08:51:43 CET 2002


Hi,

I guess you are looking for something like

a <- hist(...., plot=FALSE) # don't draw the histogram
a$breaks # breakpoints
a$counts # frequency table

This is documented as the return value for hist() on the help page.

Perahps it helps.

Ott

 | From: "Bleh Blah" <jacksragingvileduct at hotmail.com>
 | Date: Wed, 04 Dec 2002 15:22:19 -0500
 | 
 | Is there any way to extract the break points from a hist function as a 
 | vector so I can later use them for a cut function?
 | 
 | The ultimate goal is to make a frequency table of the data with the same 
 | break points that were used in the histogram.




More information about the R-help mailing list