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
----- Original Message -----
From: "Eric Pellegrini" <eric.pellegrini at
chemie.uni-erlangen.de>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, March 17, 2005 11:19 AM
Subject: [R] Question about hist
> 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 at 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
>