[R] Histogram
Vincent Goulet
vincent.goulet at act.ulaval.ca
Thu Jul 24 06:27:07 CEST 2008
Le mer. 23 juil. à 14:29, Angelo Scozzarella a écrit :
> Hi,
>
> how can I treat data organised in classes and frequencies?
>
> Ex.
>
> class frequency
>
> 20-23 9
> 23-25 7
> 26-28 5
> 29-31 5
> 32-34 3
It depends what you mean by "treat", but package actuar has a function
grouped.data() to create such objects. Then, there are methods to
compute the mean or plot the histogram. See the "lossdist" package
vignette for details.
HTH Vincent
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
> Thanks
>
> Angelo Scozzarella
More information about the R-help
mailing list