r - How to find the means of all columns of a matrix simultaneously -
i have matrix , want find means of columns @ same time. can this? below data.
dta=matrix(c(11,12,10,9,15,8),nrow=2,ncol=3)
how find means of columns simultaneously.
function colmeans
right that:
> colmeans(dta) [1] 11.5 9.5 11.5
Comments
Post a Comment