[R] hist() Frequancy values

Stefano Calza stef at biostatistics.it
Wed Jul 18 12:49:36 CEST 2007


Try 

xx = hist(yy,plot=FALSE) ## plot=FALSE if you don't want to plot it

and then xx$counts

HIH

Stefano

On Wed, Jul 18, 2007 at 12:34:42PM +0200, Manuele Pesenti wrote:
<Manuele>I have seen that the hist() function plots an histogram of the frequency but I 
<Manuele>cannot find the value of the object hist that contains theese values... how 
<Manuele>is possible to get out them? 
<Manuele>
<Manuele>thank you very mutch
<Manuele>best regards
<Manuele>
<Manuele>	Manuele
<Manuele>
<Manuele>
<Manuele>-- 
<Manuele>Manuele Pesenti
<Manuele>	manuele a inventati.org
<Manuele>	amicogodzilla a jabber.linux.it
<Manuele>	http://mpesenti.polito.it
<Manuele>
<Manuele>______________________________________________
<Manuele>R-help a stat.math.ethz.ch mailing list
<Manuele>https://stat.ethz.ch/mailman/listinfo/r-help
<Manuele>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
<Manuele>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list