nsort: Sort numerically. If x can be represented numerically, then...

nsortR Documentation

Sort numerically. If x can be represented numerically, then sort numerically otherwise sort normally.

Description

Sort numerically. If x can be represented numerically, then sort numerically otherwise sort normally.

Usage

nsort(x, stripAlpha = TRUE, sortAlphaOnlySeparately = TRUE, ...)

Arguments

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

Value

x after sorted.

See Also

sort


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.