split_token | R Documentation |
Split tokens.
split_token(x, ...)
## Default S3 method:
split_token(x, lower = TRUE, ...)
## S3 method for class 'data.frame'
split_token(x, text.var = TRUE, lower = TRUE, ...)
x |
A |
lower |
logical. If |
text.var |
The name of the text variable. If |
... |
Ignored. |
Returns a list of vectors of tokens or an expanded
data.table
with tokens split apart.
(x <- c(
"Mr. Brown comes! He says hello. i give him coffee.",
"I'll go at 5 p. m. eastern time. Or somewhere in between!",
"go there"
))
split_token(x)
split_token(x, lower=FALSE)
data(DATA)
split_token(DATA)
split_token(DATA, lower=FALSE)
## Larger data set
split_token(hamlet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.