Description Usage Arguments Value
View source: R/make_site_name.R
Sometimes one column of a data.frame has human-readable names, and the other had computer-useful codes. We often need to look up one based on the other. This function creates a handy lookup vector from two such columns of a data.frame. The vector is only as long at the number of distinct name-value pairs.
1 | make_lookup_vector(some_df, value_col, name_col)
|
some_df |
any data frame, containing two columns: one for values, one for names used to choose a value |
value_col |
the values to be looked up |
name_col |
the names to use to find these values. |
a named vector of
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.