transform matrix into vector r code example
Example: r convert matrix to list of column vectors
# Basic syntax:
split(your_matrix, rep(1:ncol(your_matrix), each = nrow(your_matrix)))
# Basic syntax:
split(your_matrix, rep(1:ncol(your_matrix), each = nrow(your_matrix)))