4. Matrix-matrix multiplication. The matrices, X
and Y
, have been defined for you. You can
check the dimensions of a matrix in R
with the dim()
function.
In order to perform matrix multiplication, the number of columns of the first matrix must be equal to the number of rows of
the second. Multiply the X
and Y
in the order that makes it a conformable operation using
the %*%
operation.