View source: R/str_annotations.R
remove_annotations | R Documentation |
Remove 'annotation' sections from strings
remove_annotations(x, paren = FALSE, square = FALSE, curly = FALSE, ...) remove_paren(x, ...) remove_curly(x, ...) remove_square(x, ...) replace_annotations( x, replacement, paren = FALSE, square = FALSE, curly = FALSE, ... ) replace_paren(x, replacement, ...) replace_curly(x, replacement, ...) replace_square(x, replacement, ...) extract_parentheses(x, ...) extract_square(x, ...) extract_curly(x, ...) detect_parentheses(x, ...) detect_square(x, ...) detect_curly(x, ...)
x |
character vector |
paren |
match parenthetical annotations |
square |
match square-bracketed annotations |
curly |
match curly-bracketed annotations |
... |
passed to 'stringr::regex' |
replacement |
replace matched pattern with this |
modified vector with annotation blocks removed
remove_paren
: remove all parenthetical phrases
remove_curly
: remove all curly-bracketed phrases
remove_square
: remove all square-bracketed phrases
replace_annotations
: replace text annotations
replace_paren
: replace all parenthetical phrases
replace_curly
: replace all curly-bracketed phrases
replace_square
: replace all square-bracketed phrases
extract_parentheses
: extract all parenthetical annotations
extract_square
: extract all square-bracketed annotations
extract_curly
: extract all curly-bracketed annotations
detect_parentheses
: detect parenthetical annotations
detect_square
: detect square-bracketed annotations
detect_curly
: detect curly-bracketed annotations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.