bdCharacter to all lower case or all upper case.
casefold(cv, upper=F) tolower(x) toupper(x)
bdVector of values to be converted.
This will be coerced to mode character (through
as.character).
TRUE, all characters are converted to upper case.
FALSE, all characters are converted to lower case.
bdCharacter with all letters translated
to either lower case
(if
upper=F) or upper case (if
upper=T).
Characters in
cv that are not letters are not changed.
Attributes of
cv are lost in the output.
The
toupper and
tolower functions are
frontend functions to
casefold with the appropriate
value for
upper set.
casefold(LETTERS) tolower(LETTERS) # same as previous line casefold(letters, upper=T) toupper(letters) # same as previous line