Description Usage Arguments Value Author(s) Examples
Generate an unpacking method for vectors
1 | gen.vunpack(l)
|
l |
a list |
an unpacking method
Simon Barthelme
1 2 3 4 5 6 7 8 | #A list of values that can all be coerced into a vector
l <- list(a= matrix(1:4,2,2),b = 5)
#Pack elements into a vector
vpack(l)
#For the inverse operation (getting the list back from our packed vector)
#we create an unpacking method
unpack <- gen.vunpack(l)
vpack(l) %>% unpack
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.