Answers for "r convert matrix to list of column vectors"

R
1

r convert matrix to list of column vectors

# Basic syntax:
 split(your_matrix, rep(1:ncol(your_matrix), each = nrow(your_matrix)))
Posted by: Guest on October-10-2020

Code answers related to "r convert matrix to list of column vectors"

Browse Popular Code Answers by Language