Hello,
I have a very basic example below. I want to divide the matrix by the vector but I want to divide the first element of the vector over the first row, the second element of the vector over the second row etc. Is there a quick way to do accomplish this?
matrix <- matrix(1:20,nrow = 4, ncol = 5)
vector <- c(1:4)