Learn R Programming

name (version 0.0.2)

sort_pref: Sort by Prefix

Description

Sort by Prefix

Usage

sort_pref(x)

Value

character

Arguments

x

character; strings to sort

Examples

Run this code
x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020')
sort_pref(x)

Run the code above in your browser using DataLab