Description Usage Arguments Value Examples
View source: R/generic_text_functions.R
This function replaces spaces in n-grams with underscores to turn them into single tokens.
1 | replace_ngrams(x, ngrams)
|
x |
A character vector in which to replace n-grams. |
ngrams |
A character vector of n-grams. |
The input character vector with spaces in n-grams replaced by underscores.
1 | replace_ngrams("by means of natural selection", "natural selection")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.