sortnum: Sorts string vector by numeric characters

Description Usage Arguments Value Examples

View source: R/scripts.R

Description

Numeric characters in each vector element are concatenated and treated as integers, and the sorting is done by these intergers. E.g. c('a10','a2','a1') would be sorted as c('a1','a2','a10').

Usage

1

Arguments

x

vector of strings

...

other arguments passed to the function sort

Value

sorted vector of strings

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.