[R] Mean of colMeans

Igor Sosa Mayor joseleopoldo1792 at gmail.com
Wed May 21 20:58:52 CEST 2014


Kate Ignatius <kate.ignatius at gmail.com> writes:
> Hi All,
>
> I've successfully gotten out the colMeans for 60 columns using:
>
> col <- colMeans(x, na.rm = TRUE, dims = 1)
>
> My next question is: is there a way of getting a mean of all the
> column means (ie a mean of a mean)?

maybe
mean(x)
?

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792 at gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::



More information about the R-help mailing list