vectorBind: Bind Vectors Column-Wise According to Name

Description Usage Arguments Value Author(s) References Examples

View source: R/vectorBind.R

Description

Combines named vectors into a matrix with the rows being the names of the vector elements, and the columns being the name of the source vector.

Usage

1

Arguments

...

The objects that need to be combined.

Value

A matrix.

Author(s)

Ananda Mahto

References

http://stackoverflow.com/q/25639223/1270695

Examples

1
2
3
4
5
6
set.seed(1)
t1 <- table(sample(LETTERS[c(1, 2, 4)], 20, TRUE))
t2 <- table(sample(LETTERS[c(1, 2, 3)], 20, TRUE))
t3 <- table(sample(LETTERS[c(2, 4, 5)], 20, TRUE))

vectorBind(t1, t2, t3)

mrdwab/SOfun documentation built on June 20, 2020, 6:15 p.m.