add_pref {name}R Documentation

Add Prefix

Description

Add Prefix

Usage

add_pref(x, pref)

Arguments

x

character; string to change

pref

character; prefix to add

Value

character

Examples

x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020')
add_pref(x, 'census_')

[Package name version 0.0.1 Index]