Learn R Programming

RclusTool (version 0.91.61)

sortCharAsNum: Character vector numeric sorting

Description

Performs sorting of a vector of characters numerically, if possible

Usage

sortCharAsNum(char.vec, ...)

Value

the character vector sorted, if possible.

Arguments

char.vec

a character vector, describing numbers.

...

other parameters controlling the order treatment of the character vector.

Details

sortCharAsNum performs sorting of a vector of characters numerically, if possible

See Also

computeSemiSupervised, KwaySSSC

Examples

Run this code
x <- c("12", "8", "101")

sortCharAsNum(x)

Run the code above in your browser using DataLab