to_named_vector | R Documentation |
turn two columns of a tibble into a named vector
to_named_vector(data, name_column, value_column)
data |
a tibble |
name_column |
string with the name of the column to be used as names in the vector |
value_column |
string with the name of the column to be used as values in the vector |
a named vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.