[R] list structure question

Rajarshi Guha rxg218 at psu.edu
Thu Jul 1 17:37:23 CEST 2004


Hi,
  I have a list in which element is a vector (all of the same length and
all numeric). I want to find the mean of the first elements of the
vectors, the mean of the second elements of the vectors and so on.

Currently I convert the list to a data.frame and apply rowMeans(). But
is there a way to to do this directly on the list? I seem to recall a
post in which there was such a function (or expression) but I just cant
seem to find it.

Could somebody point me in the right direction?

-------------------------------------------------------------------
Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Despite the high cost of living, it remains popular.




More information about the R-help mailing list