Re: [R] Question about hist

From: Dimitris Rizopoulos <dimitris.rizopoulos_at_med.kuleuven.ac.be>
Date: Thu 17 Mar 2005 - 21:29:15 EST

you mean something like this:

lapply(histList, function(x) cumsum(x$counts))

I hope it helps.

Best,
Dimitris



Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm


> Hi all,
>
> here is my problem:
>
> I have a list (called rms) that contains for each of its element a
> different
> number of values.
>
> Based on that list, I generate an histogram for each of its elements
> using:
>
> histList <- lapply(rms,hist,breaks=seq(0,4,0.1),plot=FALSE)
>
> that gives me a list of histograms (called histList)
>
> Now, I would like to get the cumulative sum for the field $counts of
> each of
> the element of histList using cumsum function.
>
> Is that possible given the way I used or is there a simpler one ?
>
> Thank you very much
>
> Eric
>
> --
> Eric Pellegrini, PhD
> Computer-Chemie-Centrum
> University of Erlangen-Nürnberg
> Nägelbachstraße, 25
> D-91052 Erlangen
> Germany
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Mar 17 21:31:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:50 EST