On Sun, 13 Apr 2014 05:01:40 -0700 (PDT) "andre.zacha...@gmail.com" <andre.zacha...@gmail.com> wrote
> Thank you very much!!!!!! > .. .. > *De :* arun kirshna [via R] > *Envoyé :* 13 avril 2014 11:23 > *À :* andre.zacha...@gmail.com > *Objet :* Re: mean calculations from a dframe column > > Hi André, > > Your codes were missing in some information. If your code looks like this: .. .. > Mean <- apply(a, 2, mean, na.rm = TRUE) .. .. .. Andre, Just for future reference, have a look at ?colMeans "These functions are equivalent to use of apply with FUN = mean or FUN = sum with appropriate margins, but are a lot faster." Cheers, D. ____________________________________________________________ South Africas premier free email service - www.webmail.co.za Ensure Quality Health Care For All http://www.anc.org.za/2014/manifesto/ ______________________________________________ R-help@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.