Skip to content
Prev 13552 / 398513 Next

stuff I used to do in Matlab

On Thu, 13 Sep 2001, David A Richmond wrote:

            
apply(x,2,sum)   gives column sums
  apply(x,1,sum)   gives row sums
cbind(x,y)  concatenates matrices by column
  rbind(x,y)  concatenates matrices by row


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._