substract_prefix: substract_prefix

Description Usage Arguments Details Value Examples

View source: R/prefix_operation.R

Description

Subtracts the prefix of the word entered as a parameter

Usage

1
substract_prefix(word, prefix)

Arguments

word

string. The word from which the prefix must be removed.

prefix

string. The prefix to be removed from the word.

Details

subtracts the prefix of the word entered as a parameter and returns the same word without prefix.

Value

returns the word without the prefix.

Examples

1
2
3
4
5
str <- "abcd"
word <- substract_prefix(str, "ab")

column_name <- "R_column"
word <- substract_prefix(column_name, "R_")

JeremyGillard/somar documentation built on March 19, 2021, 10:50 a.m.