mk_mtx: Create matrix from vectors

Description Usage Arguments Value Examples

Description

Binds the supplied vectors into columns of a matrix consisting with vector names as column names (if the vectors are named).

Usage

1

Arguments

...

one or more named vectors which should be combined into the columns of a matrix. If the vectors are named, these names will become the column names. Note that the vectors should all be of the same length and type.

Value

a matrix constructed from the named vectors.

Examples

1
2
3
4
5
mk_mtx(col_1 = c("a", "b"), col_2 = c("alpha", "bravo"))

mk_mtx(A = c(1, 10, 100))

mk_mtx(seq(10, 30, 10), seq(70, 90, 10))

toniprice/jutebag documentation built on May 12, 2019, 4:39 a.m.