powered by
Sort by Phrase
sort_phrase(x, loc = 2)
character
character; strings to sort
number of location to sort by. For example 1_2_3_4 with loc = 3 sorts by 3.
1_2_3_4
loc = 3
x <- c('pop_2020_est', 'pop_white_2020', 'pop_black_2020', 'pop_white_2021') sort_phrase(x)
Run the code above in your browser using DataLab