[R] apply a function to several lists' components

From: Taka Matzmoto <sell_mirage_ne_at_hotmail.com>
Date: Sat 01 Jul 2006 - 00:50:51 EST


Dear R-user
I have 100 lists.
Each list has several components.

For example,

>data1

$a
[1] 1 2

$b
[1] 3 4

$c
[1] 5

There are data1, data2,...., data100. All lists have the same number and the same name of components.

Is there any function I can use for applying to only a specific component across 100 lists?
(e.g., taking mean of $c acorss 100 lists) or do I need to write my own function for that?

Thank you.

Taka,



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 Sat Jul 01 01:03:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 01 Jul 2006 - 04:14:36 EST.

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