simplifiedNamesByEnd: Simplify a vector of names removing the common end

Description Usage Arguments Value Examples

View source: R/myBasicFunctions.R

Description

Simplify a vector of names removing the common end

Usage

1

Arguments

vecOfNames

a vector with different names to simplify

Value

a vector with the same length as vecOfNames where the end of the names were removed if they were identicals.

Examples

1
2
vecOfNames <- c("beautiful", "useful", "painful")
simplifiedNamesByEnd(vecOfNames)

lldelisle/usefulLDfunctions documentation built on Nov. 29, 2021, 5:40 a.m.