?mapply, but I think what you are doing is as good as anything.

On Thu, 1 Jul 2004, Rajarshi Guha wrote:

>   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?

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to