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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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