powered by
Matrix representatation of list of vectors and vice versa
set_list2matrix(set_list, aggregate = FALSE)matrix2set_list(set_matrix)
matrix2set_list(set_matrix)
list of vectors
should the vectors be aggregated
matrix representatation
l <- list(c(1,2,3), c(3,2,4), c(3,2,4)) m1 <- set_list2matrix(l) m1 matrix2set_list(m1) m2 <- set_list2matrix(l, aggregate=TRUE) m2 matrix2set_list(m2)
Run the code above in your browser using DataLab