Answers for "r transform matrix to list"

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

Browse Popular Code Answers by Language