list_to_matrix: Design-type matrix from the elements in a list

Description Usage Arguments Value Author(s) See Also Examples

View source: R/list_to_matrix.r

Description

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.

Usage

1

Arguments

alist

a list of numeric vectors

Value

A design-type matrix

Author(s)

Gaston Sanchez

See Also

list_to_dummy, indexify

Examples

1
2
3
4
5
# 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)

gastonstat/turner documentation built on May 16, 2019, 6:38 p.m.