matmult
Matrix Multiplication

### Description

Performs matrix multiplication on two conformable matrices.

### Usage

    x %*% y

### Arguments

x,y | a matrix or a vector, which is numeric or complex. Missing values (NAs) are allowed

### Details

Any computation involving a missing value results in a missing value.
The last extent of x must be the same size as the first extent of y. Vectors are not oriented; therefore, a vector of length n can multiply an n by n matrix on the left or right.
If neither x nor y are matrices, then the result of x %*% y is a one by one matrix.
The expression x * y performs element-wise multiplication, not matrix multiplication.
Value
returns a matrix that is the matrix product of x and y.
See Also
matrix, outer, crossprod.
Examples

    freeny.ls <- lsfit(Sdatasets::freeny.x, Sdatasets::freeny.y)
    fit <- cbind(1, Sdatasets::freeny.x) %*% freeny.ls$coef

Package base version 6.1.5-18
Package Index