View source: R/add_values_to_key.R
add_values_to_key | R Documentation |
Adds values to an encoding key as generated by make_encoding_key()
.
add_values_to_key(values_to_add, prime_key)
values_to_add |
A vector of values to add to key. |
prime_key |
The old keys to which values are to be added. |
A vector containing a new key, including both old and new values.
make_encoding_key()
# Add "Arthropod" to encoding key. new_prime_key <- add_values_to_key("Arthropod", c(Fish = 2, Mammal = 3, Bird = 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.