View source: R/ExtractNewValues.R
find_unique_values | R Documentation |
A function to find the unique values for all of a given tibble.
find_unique_values(data)
data |
A tibble for which we hope to find all of the unique values |
Rpackage file: ExtractNewValues.R
A list of the unique values, NAs excluded
data <- tibble::tibble(
crop_name_1 = c("maize", "cassava", "millet"),
crop_name_2 = c("potato", NA, "cucumber")
)
# Expect the result c("maize", "cassava", "millet","potato", "cucumber")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.