toLower(x, keep_acronyms = FALSE, ...)
"toLower"(x, keep_acronyms = FALSE, ...)
"toLower"(x, ...)
"toLower"(x, keep_acronyms = FALSE, ...)
"toLower"(x, ...)
"toUpper"(x, ...)
"toLower"(x, keep_acronyms = FALSE, ...)
toUpper(x, ...)
"toUpper"(x, ...)
"toUpper"(x, ...)
"toUpper"(x, ...)
"toUpper"(x, ...)
TRUE
, do not lowercase any all-uppercase words.
Only applies to toLower
.stri_trans_tolower
), such as locale
x
is a
character vector or a corpus, return a character vector. If
x
is a list of tokenized texts, then return a list of
tokenized texts.
test1 <- c(text1 = "England and France are members of NATO and UNESCO",
text2 = "NASA sent a rocket into space.")
toLower(test1)
toLower(test1, keep_acronyms = TRUE)
test2 <- tokenize(test1, removePunct=TRUE)
toLower(test2)
toLower(test2, keep_acronyms = TRUE)
test1 <- c(text1 = "England and France are members of NATO and UNESCO",
text2 = "NASA sent a rocket into space.")
toUpper(test1)
test2 <- tokenize(test1, removePunct = TRUE)
toUpper(test2)
Run the code above in your browser using DataLab