findAndReplace: Find and replace.

Description Usage Arguments Examples

Description

Find and replace.

Usage

1
findAndReplace(x, y = NULL, replacements, ...)

Arguments

x

character vector either specifying a file directory, or a string to process

y

a target directory

replacements

a list

...

further parameters that are passed to dirApply

Examples

1
2
x <- c("water and milk", "butter or water", "scotch or soda")
findAndReplace(x, replacements = list(c("and", "or"), c("s", "S"), c("\\sw", " W")))

PolMine/ctk documentation built on May 8, 2019, 3:20 a.m.