powered by
Add Prefix
add_pref(x, pref)
character
character; string to change
character; prefix to add
x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020') add_pref(x, 'census_')
Run the code above in your browser using DataLab