powered by
tokens_tolower and tokens_toupper convert the features of a tokens object and reindex the types.
tokens_tolower
tokens_toupper
tokens_tolower(x, ...)tokens_toupper(x, ...)
tokens_toupper(x, ...)
a tokens object
additional arguments passed to char_tolower (currently this is limited to keep_acronyms)
char_tolower
keep_acronyms
char_tolower, char_toupper
char_toupper
# NOT RUN { # for a document-feature matrix toks <- tokens(c(txt1 = "b A A", txt2 = "C C a b B")) tokens_tolower(toks) tokens_toupper(toks) # }
Run the code above in your browser using DataLab