| repl_pref | R Documentation |
Replace Prefix
repl_pref(x, pref, repl)
x |
character; string to change |
pref |
character; prefix to replace |
repl |
character; prefix to replace with |
character
x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020')
repl_pref(x, 'pop_', 'p_')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.