as.named.vector.2colDF | R Documentation |
Convert a 2-column dataframe (value, name) into a named vector. Use for simple tibbles.
as.named.vector.2colDF(df, values = 1, names = 2, make.names = FALSE)
df |
data frame |
values |
Index of column with values, Default: 1 |
names |
Index of column with names, Default: 2 |
make.names |
make.names, Default: F |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.