I have two matrices. The first one has dimensions of 4x4 and the second one has dimensions of 4X1. In theory multiplying these two would give me a 4X1 matrix. When I tried this I got an error: requires numeric/complex matrix/vector arguments
Here is my code and proof that the dimensions are as I said:
singles=as.matrix(singles)
odds=as.matrix(odds)
singles_returns=singles%*%odds
> dim(singles)
[1] 4 4
> dim(odds)
[1] 4 1
> singles%*%odds
Error in singles %*% odds :
requires numeric/complex matrix/vector arguments
Any help would be appreciated