[R] Please Help. Subtraction of Matrices?

g barlow gbarlow at bellsouth.net
Thu Oct 31 04:58:33 CET 2002


I am just beginning to learn R.  Please help. I have two matrices. One 20 
columns by 16 rows represent student responses on a 20 question test. The 
second is 20 by 16 representing the correct responses 16 
times.  Subtracting one from the other should yield 0's if a response is 
correct.  Yet Response minus Bigkey doesn't work.  Documents indicate 
vectors should add and subtract, and seem to imply matrix algebra should 
also work.  How can I do this?  Can you help, and save me a great deal of 
time and trial-and-error.  Thanks for any help.--Gene Barlow, Ft. Lauderdale FL.


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