[R] %*%

(Ted Harding) Ted.Harding at wlandres.net
Thu Apr 11 12:41:25 CEST 2013


On 11-Apr-2013 10:25:17 Shane Carey wrote:
> What does these operators do: %*%
> 
> Thanks
> -- 
> Shane

Enter the command

  ?"%*%"

and you will see:

  Matrix Multiplication
  Description:
     Multiplies two matrices, if they are conformable.  If one argument
     is a vector, it will be promoted to either a row or column matrix
     to make the two arguments conformable.  If both are vectors it
     will return the inner product (as a matrix).
  Usage:
     x %*% y
  [etc.]

Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at wlandres.net>
Date: 11-Apr-2013  Time: 11:41:22
This message was sent by XFMail



More information about the R-help mailing list