[R] hist() basic question
    juli g. pausas 
    juli at ceam.es
       
    Sat Mar  8 19:07:13 CET 2003
    
    
  
Hi,
This is a very basic question, but I would like to undestand hist(). I 
thought that the hist( , freq=FALSE) should provide the relative 
frequencies (probabilities), and so they should sum 1, however:
set.seed(2)
ah <- hist(rnorm(100), freq=F)
sum(ah$intensities)
[1] 2
set.seed(2)
bh <- hist(rlnorm(100), freq=F)
sum(bh$intensities)
[1] 0.4999996
I'm getting similar figures with truehist() in MASS.
So I suppose I'm misunderstanding hist(). Any help?
Thanks
Juli
    
    
More information about the R-help
mailing list