Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r sort character number

> # install.packages("gtools") ## Uncomment if not already installed
> library(gtools)
> mixedsort(cf)
 [1] "V51"  "V108" "V116" "V120" "V155" "V217" "V327" "V440" "V446" "V457" "V477"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #character #number
ADD COMMENT
Topic
Name
6+1 =