sortNum: Sort strings with numbers using the numbers as sorting...

Description Usage Arguments Value

View source: R/utils.R

Description

Often a sequence of strings contain a numbers and it is necessary to sort these strings according to these numbers and not alphabetically.

Usage

1
sortNum(x, decreasing = FALSE, index.return = FALSE)

Arguments

x

Strings to be sorted containing at least one integer group.

decreasing

Sort the sequence in decreasing order?

index.return

Return the indexes of the sorted vector?

Value

Sorted vector or, depending on argument index.return index.


tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.