powered by
Takes a vector and returns the same vector without duplicate elements and without NA values
remove_duplicates_and_nas(x)
Returns vector with duplicates and NAs removed
A vector
Can be used as a filtering function in split_map_filter_reduce
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
Run the code above in your browser using DataLab