Learn R Programming

wrMisc (version 1.15.3.1)

.addLetterWoLast: 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)

Value

This function returns a modified character vector

Arguments

x

(character) main input

addChr

(character)

See Also

paste; used in cutAtMultSites

Examples

Run this code
.addLetterWoLast(c("abc","efgh"),"Z")

Run the code above in your browser using DataLab