View source: R/casechange-functions.R
tokens_tolower | R Documentation |
tokens_tolower()
and tokens_toupper()
convert the features of a
tokens object and re-index the types.
tokens_tolower(x, keep_acronyms = FALSE)
tokens_toupper(x)
x |
the input object whose character/tokens/feature elements will be case-converted |
keep_acronyms |
logical; if |
# for a document-feature matrix
toks <- tokens(c(txt1 = "b A A", txt2 = "C C a b B"))
tokens_tolower(toks)
tokens_toupper(toks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.