dot-replSpecChar: Replace Special Characters

.replSpecCharR Documentation

Replace Special Characters

Description

This function allows replacing special characters Note that (most) special characters must be presented with protection for grep and sub.

Usage

.replSpecChar(x, findSp = c("\\(", "\\)", "\\$"), replBy = "_")

Arguments

x

(character) main input

findSp

(character) special characters to replace (may have to be given as protected)

replBy

(character) replace by

Value

This function returns a corrceted/adjusted factor

See Also

factor

Examples

.replSpecChar(c("jhjh(ab)","abc"))

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