tokens_tolower {quanteda} | R Documentation |
Convert the case of tokens
Description
tokens_tolower()
and tokens_toupper()
convert the features of a
tokens object and re-index the types.
Usage
tokens_tolower(x, keep_acronyms = FALSE)
tokens_toupper(x)
Arguments
x |
the input object whose character/tokens/feature elements will be case-converted |
keep_acronyms |
logical; if |
Examples
# for a document-feature matrix
toks <- tokens(c(txt1 = "b A A", txt2 = "C C a b B"))
tokens_tolower(toks)
tokens_toupper(toks)
[Package quanteda version 4.0.2 Index]