Learn R Programming

name (version 0.0.2)

add_suff: Add Suffix

Description

Add Suffix

Usage

add_suff(x, suff)

Value

character

Arguments

x

character; string to change

suff

character; suffix to add

Examples

Run this code
x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020')
add_suff(x, '_cen')

Run the code above in your browser using DataLab