Learn R Programming

name (version 0.0.2)

rem_pref: Remove Prefix

Description

Remove Prefix

Usage

rem_pref(x, pref)

Value

character

Arguments

x

character; string to change

pref

character; prefix to remove

Examples

Run this code
x <- c('pop', 'pop_2020_est', 'pop_white_2020', 'pop_black_2020')
rem_pref(x, 'pop_')

Run the code above in your browser using DataLab