Replaces tokens in the tidy text dataset with a string scalar only if they are matched to an expression.
Arguments
- tbl
A tidy text dataset.
- condition
<
data-masked
> A logical expression.- .as
String with which tokens are replaced when they are matched to condition. The default value is
NA_character
.