su {kim} | R Documentation |
su: Sorted unique values
Description
Extract unique elements and sort them
Usage
su(x = NULL, na.last = TRUE, decreasing = FALSE)
Arguments
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, |
Value
a vector, data frame, or array-like 'x' but with duplicate elements/rows removed.
Examples
su(c(10, 3, 7, 10, NA))
su(c("b", "z", "b", "a", NA, NA, NA))
[Package kim version 0.5.422 Index]