Description Usage Arguments Value
The levels of 'a' are used to pick the corresponding values in 'b' so that the named vector returned can be used in e.g. ggplot2::scale label parameters.
1 | named_vector(.df, a, b)
|
.df |
the dataframe to reference the columns from |
a |
the column whose levels will be used as names |
b |
the values of the named vector |
a named vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.