powered by
Create a design-type matrix based on the elements of a list. Each column in the produced matrix is linked to the vectors in the list. See example.
list_to_matrix(alist)
A design-type matrix
a list of numeric vectors
Gaston Sanchez
list_to_dummy, indexify
list_to_dummy
indexify
# let's say you have a list like this num_list = list(1:3, 4:5, 6:9) # get design-type matrix list_to_matrix(num_list)
Run the code above in your browser using DataLab