R "requires numeric/complex matrix/vector arguments" -
i intend multiplicate 2 matrices. math pretty basic.
inputa represents 8760x175 matrix , inputb 175x1 matrix (rows x columns). there should no problem math...
however, if used as.matrix command save inputb, inputb still saved character. transposing , re-transposing doesn't either. i'm pretty clueless right now, simple on paper, can't work in r studio
inputa <- as.matrix(input_de_2014_bundeslaender_xml_ee_alpha[-1:-4,-1:-3]) inputb <- as.matrix(input_de_2014_bundeslaender_xml_ee_cap[-1:-2]) inputb <- inputb[,-2:-4] inputb <- inputb[-1,] inputb <- inputb[,-2] newmatr <- inputa %*% inputb
Comments
Post a Comment