[R] Vector- matrix arithmatic

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


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.



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

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