vpack: Pack a list of objects into a vector

Description Usage Arguments Value Author(s) See Also Examples

Description

Turns a list of objects into a concatenated vector. Objects must have an "as.vector" method. If given a single object, vpack just runs as.vector.

Usage

1
vpack(l)

Arguments

l

a list of objects or a single object

Value

a vector

Author(s)

Simon Barthelme

See Also

gen.vunpack

Examples

1
2
list(a=1:3,b=matrix(1:4,2,2)) %>% vpack
matrix(1:4,2,2) %>% vpack

dahtah/vecpack documentation built on May 14, 2019, 3:27 p.m.