ma=diag(3)+t(da)%*%da
R Code above, error message as follows:
Error in t(da) %*% da : requires numeric/complex matrix/vector argume
Just in addition, you get this error if you attempting to pass a data frame where a matrix should be.