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)

arnesmits/DEP documentation built on Aug. 7, 2019, 10:44 a.m.