add_values_to_key: Add Values to Key

View source: R/add_values_to_key.R

add_values_to_keyR Documentation

Add Values to Key

Description

Adds values to an encoding key as generated by make_encoding_key().

Usage

add_values_to_key(values_to_add, prime_key)

Arguments

values_to_add

A vector of values to add to key.

prime_key

The old keys to which values are to be added.

Value

A vector containing a new key, including both old and new values.

See Also

make_encoding_key()

Examples

# Add "Arthropod" to encoding key.
new_prime_key <- add_values_to_key("Arthropod", c(Fish = 2, Mammal = 3, Bird = 5))

JonasEngstrom/primr documentation built on June 9, 2022, 9:43 p.m.