This function first binds a column filled with 1s named intercept to a, then performs rownames and colnames-aware (%**%) matrix multiplication with b.

a %*1% b

Arguments

a

a matrix with rownames specified

b

a matrix with colnames specified

Value

matrix