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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -