nsort | R Documentation |
Sort numerically. If x can be represented numerically, then sort numerically otherwise sort normally.
nsort(x, stripAlpha = TRUE, sortAlphaOnlySeparately = TRUE, ...)
x |
object to sort |
stripAlpha |
remove alpha characters before attempting sort, but retain them in the output |
sortAlphaOnlySeparately |
if a value is purely alpha (ie: contains no numeric component) sort is separately from the alpha-numeric values, and return it after any numerically sorted values |
... |
additional arguments passed to sort |
x after sorted.
sort
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.