Learn R Programming

RclusTool (version 0.91)

sortCharAsNum: Character vector numeric sorting

Description

Performs sorting of a vector of characters numerically, if possible

Usage

sortCharAsNum(char.vec, ...)

Arguments

char.vec

a character vector, describing numbers.

...

other parameters controlling the order treatment of the character vector.

Value

the character vector sorted, if possible.

Details

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

See Also

computeSemiSupervised, KwaySSSC

Examples

Run this code
# NOT RUN {
x <- c("12", "8", "101")

sortCharAsNum(x)

# }

Run the code above in your browser using DataLab