| su | R Documentation |
Extract unique elements and sort them
su(x = NULL, na.last = TRUE, decreasing = FALSE)
x |
a vector or a data frame or an array or NULL. |
na.last |
an argument to be passed onto the 'sort' function
(in base R) for controlling the treatment of NA values.
If |
decreasing |
logical. Should the sort be increasing or decreasing?
An argument to be passed onto the 'sort' function (in base R).
By default, |
a vector, data frame, or array-like 'x' but with duplicate elements/rows removed.
su(c(10, 3, 7, 10, NA))
su(c("b", "z", "b", "a", NA, NA, NA))