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)

squirrelandr/DEP documentation built on May 7, 2019, 9:31 a.m.