sort_phrase: Sort by Phrase

View source: R/sort.R

sort_phraseR Documentation

Sort by Phrase

Description

Sort by Phrase

Usage

sort_phrase(x, loc = 2)

Arguments

x

character; strings to sort

loc

number of location to sort by. For example ⁠1_2_3_4⁠ with loc = 3 sorts by 3.

Value

character

Examples

x <- c('pop_2020_est', 'pop_white_2020', 'pop_black_2020', 'pop_white_2021')
sort_phrase(x)

name documentation built on Sept. 9, 2025, 5:35 p.m.