In binaryratings2 there are 9724 obs of 610 variables and in genre_matrix3 there are 9741 obs of 18 variables. I'm getting error like longer object length is not a multiple of shorter object length
. How can I solve this?
#Calculate dot product for User Profiles
result = matrix(0,18,706)
for (c in 1:ncol(binaryratings2)){
for (i in 1:ncol(genre_matrix3)){
result[i,c] <- sum((binaryratings2[,c]) * (genre_matrix3[,i]))
}
}