[R] densities from a list with data.frames

From: Antje <niederlein-rstat_at_yahoo.de>
Date: Fri, 11 Apr 2008 13:31:04 +0200

Hi there,

I have a list which consists of data frames (all data frames have the same amount and type of columns but different length). Now, I'd like to calculate for each data frame in the list the density function of the values of the fist column ($V1).

This list could be an example:

l <- list( data.frame(rnorm(100)), data.frame(rnorm(20)), data.frame(rnorm(200)) )

Can anybody help? I'm sure there is a nice short way to do this :-)


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 11 Apr 2008 - 11:36:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Apr 2008 - 12:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive