get_suffix: Obtain the longest common suffix

Description Usage Arguments Value Examples

View source: R/functions.R

Description

get_suffix returns the longest common suffix of the supplied words.

Usage

1
get_suffix(words)

Arguments

words

Character vector, A list of words.

Value

A character vector containing the suffix

Examples

1
2
3
# Get suffix
names <- c("xyz_rep", "abc_rep")
get_suffix(names)

DEP documentation built on Nov. 8, 2020, 7:49 p.m.