.addLetterWoLast {wrMisc}R 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")

[Package wrMisc version 1.15.1 Index]