mixsort_factor: alphanumerically sort levels of a factor

View source: R/utilities.R

mixsort_factorR Documentation

alphanumerically sort levels of a factor

Description

Return a factor with alphabetically and numerically sorted levels

Usage

mixsort_factor(vec)

Arguments

vec

vector to sort

Examples

mixsort_factor(c('Sample_3', 'Sample_1', 'Sample_3', 'Sample_2'))

mathosi/jj documentation built on Feb. 25, 2024, 2:29 p.m.