unique_na | R Documentation |
Returns either NA
or the single unique element if it exists.
unique_na(x, na.rm = FALSE)
x |
List or atomic vector. |
na.rm |
Whether missing values should be removed. |
Other helper functions: capitalize_words
,
ch1903_to_wgs84
,
clean_strings
,
format_addresses
,
format_scientific_names
,
is.empty
, lvapply
,
melt_by_listcol
, na.remove
,
normalize_language
,
parse_scientific_names
,
quotemeta
,
replace_values_in_list
,
sp_transform
,
subset_search_results
unique_na(c(1, 1))
unique_na(c(1, 2))
unique_na(c(1, NA), na.rm = FALSE)
unique_na(c(1, NA), na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.