Description Usage Arguments Value Examples
Natural ordering is a kind of alphanumerical ordering.
naturalorder
returns the order of the argument character #' vector in human natural ascending or descending order.
naturalsort
returns the sorted vector.
1 2 3 | naturalorder(text, decreasing = FALSE, na.last = TRUE)
naturalsort(text, decreasing = FALSE, na.last = NA)
|
text |
a character vector to sort. |
decreasing |
logical. |
na.last |
logical. If |
For naturalorder
, the results are indices of vector elements in natural order.
For naturalsort
, the results are sorted vectors.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.