sort_phrase {name}R 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)

[Package name version 0.0.1 Index]