Obtain the longest common suffix
get_suffix.Rd
get_suffix
returns the longest common suffix
of the supplied words.
Examples
# Get suffix
names <- c("xyz_rep", "abc_rep")
get_suffix(names)
#> [1] "_rep"
get_suffix.Rd
get_suffix
returns the longest common suffix
of the supplied words.
# Get suffix
names <- c("xyz_rep", "abc_rep")
get_suffix(names)
#> [1] "_rep"