I am trying to multiply to matrices in R:
I know this multiplication can be done, but I am getting an error. Any idea why?
> d1
[,1]
[1,] -3
[2,] 0
[3,] 3
> t1
[,1] [,2] [,3]
[1,] 2 2 2
> t1 * d1
Error in t1 * d1 : non-conformable arrays