View source: R/split-map-filter-reduce.R
remove_duplicates_and_nas | R Documentation |
Takes a vector and returns the same vector without duplicate elements and without NA values
remove_duplicates_and_nas(x)
x |
A vector |
Can be used as a filtering function in split_map_filter_reduce
Returns vector with duplicates and NAs removed
split_map_filter_reduce
remove_duplicates_and_nas(c(8, 6, 7, 5, 3, 0, 9, 6, NA, 3))
# 8 6 7 5 3 0 9
remove_duplicates_and_nas(c(NA, NA))
# NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.