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 Dec. 11, 2018, 7:39 p.m.