Learn R Programming

LexFindR (version 1.1.0)

add_escape: Escape sep and target in regex

Description

Escape sep and target in regex

Usage

add_escape(target, sep, split = TRUE)

Value

escaped sep and target

Arguments

target

Character string containing a target word

sep

Separator in target and lexicon

split

Whether to split the target based on sep and escape every element in the character list