remove_duplicates_and_nas {libbib} | R Documentation |
Remove duplicate elements and NAs from a vector
Description
Takes a vector and returns the same vector without duplicate elements and without NA values
Usage
remove_duplicates_and_nas(x)
Arguments
x |
A vector |
Details
Can be used as a filtering function in split_map_filter_reduce
Value
Returns vector with duplicates and NAs removed
See Also
Examples
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
[Package libbib version 1.6.4 Index]