enframe | R Documentation |
Converts named and unnamed vectors to a data.table/tidytable.
enframe(x, name = "name", value = "value")
x |
A vector |
name |
Name of the column that stores the names. If |
value |
Name of the column that stores the values. |
vec <- 1:3
names(vec) <- letters[1:3]
enframe(vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.