I have following problem:
myvec <- c(1:3) mymat <- as.matrix(cbind(a = 6:15, b = 16:25, c= 26:35)) mymat a b c [1,] 6 16 26 [2,] 7 17 27
The %*% operator in R does matrix multiplication:
%*%
> mymat %*% myvec [,1] [1,] 116 [2,] 122 ... [10,] 170