View source: R/text_replace_group.R
text_replace_locates default
text_replace_locates default
1 2 3 4 | text_replace_locates(string, found, replacement, group, invert)
## Default S3 method:
text_replace_locates(string, found, replacement, group, invert)
|
string |
text for which to replace parts |
found |
result of an call to text_locate_group or text_locate - i.e. a list of data.frames with two columns named 'start' and 'end' that mark character spans to be replaced within the text elements |
replacement |
character vector of replacements of length 1 or length(group) to replace regex group matches (marked character spans provided by the found parameter) |
group |
vector of integers identifying thos regex groups to be replaced |
invert |
should character spans provided by found or their counterparts be replaced |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.