Description Usage Arguments Details Value Author(s)
Returns n-grams at the character level
1 2 | chr_ngram_char(x, n = 3, lower = FALSE, space = FALSE,
punct = FALSE)
|
x |
Character vector |
n |
Number of characters to return per ngram |
lower |
Logical indicating whether to lower case all text, defaults to false. |
space |
Logical indicating whether to strip space, defaults to false. |
punct |
Logical indicating whether to strip punctation, defaults to false. |
Thanks to ChrisMuir \(https://github.com/mkearney/chr/issues/1)
List of length equal to input length consisting of ngram vectors.
ChrisMuir
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.