vec2dat | R Documentation |
Convert a list of unequal vectors to a data frame.
vec2dat(x)
x |
a list of vector. |
a data matrix.
lst <- list(data.frame(a = 1, b = 2), data.frame(a = 2, c = 3, d = 5))
do.call(plyr::rbind.fill, lst)
vec <- list(var1 = c(a = 1, b = 2), var2 = c(a = 2, c = 3, d = 5))
vec2dat(vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.