Skip to content
Prev 361759 / 398506 Next

dplyr's arrange function

Despite the fact that the prevalence columns is not really the  mixed numeric/alpha , it still can be sorted quite easily with the very handy gtools::mixedorder function:
The mixedorder function splits the strings at the space boundaries and tests for numeric or alpha.