Learn R Programming

doBy (version 4.6.22)

set_list_set_matrix: Matrix representatation of list of vectors and vice versa

Description

Matrix representatation of list of vectors and vice versa

Usage

set_list2matrix(set_list, aggregate = FALSE)

matrix2set_list(set_matrix)

Arguments

set_list

list of vectors

aggregate

should the vectors be aggregated

set_matrix

matrix representatation

Examples

Run this code
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