Introduction to R – Matrix Operations

January 12, 2013    R Programming Language

Operations can be done on matrices in two fashions:

  • Element-wise : where operations performed on corresponding elements in the matrices. Just use the desired operator.

  • Matrix-wise: where operations are performed on the whole matrices in the way you used to do in math. Use the desired operator between a couple of % %

Stay tuned for more R notes.



comments powered by Disqus