dot-addLetterWoLast: Add letter to all elements but not last

.addLetterWoLastR Documentation

Add letter to all elements but not last

Description

This function allows to add 'addChr' to all entries, without the last entry

Usage

.addLetterWoLast(x, addChr)

Arguments

x

(character) main input

addChr

(character)

Value

This function returns a modified character vector

See Also

paste; used in cutAtMultSites

Examples

.addLetterWoLast(c("abc","efgh"),"Z")

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.