[R] Vector- matrix arithmatic

Peter Ho peter at esb.ucp.pt
Tue Aug 31 12:46:54 CEST 1999


Hi,

I have a matrix X of nrow=64 and ncol=5 and 2 vectors a and b both of length=5. I
want to find
the values for Y = a + (X-b) such that the operation of X is done by rows and not
by columns.

Thanks


Peter
---------------------------

Peter Ho
Escola Superior de Biotecnologia
Universidade Católica Portuguesa
Rua Dr. António Bernardino de Almeida
4200 Porto
Portugal

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list