R/sort.R

Defines functions naturalsort

Documented in naturalsort

#' @rdname naturalsort
#' @export
naturalsort <- function(text, decreasing=FALSE, na.last=NA) {
   text[naturalorder(text, decreasing=decreasing, na.last=na.last)]
}

Try the naturalsort package in your browser

Any scripts or data that you put into this service are public.

naturalsort documentation built on May 2, 2019, 5:55 a.m.