named_vectors_to_df | R Documentation |
Construct a data.frame from a list of named vectors by filling in the shorter vectors with NAs.
named_vectors_to_df(list, name_suffix = "_name", value_suffix = "_value")
list |
(a list of vectors) The list of vectors. |
name_suffix |
(character scalar) The suffix to use on the names. |
valie_suffix |
(character scalar) The suffix to use on the values. |
l = list(A = c(a = 1, b = 2, c = 3), B = c(a = 3, b = 2, c = 1))
named_vectors_to_df(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.