This is a convenience function to quickly sort and atomic vector and make the values unique. The function also strips NA values. This is useful for repetitive gene vector operations, for example.

sortUnique(object)

Arguments

object

atomic.

Value

atomic.

Note

Updated 2019-07-28.

Examples

sortUnique(c(NA, NA, "milk", "eggs", "eggs"))
#> [1] "eggs" "milk" NA