R - casefold() as a wrapper for tolower() and toupper()

25 Dec 2018

casefold is a wrapper for tolower and toupper (provided for compatibility with S-PLUS)

casefold("hello", upper=TRUE) # same as toupper("hello")
# HELLO

casefold("HELLO", upper=FALSE) # same as tolower("HELLO")
# hello
[ R  strings  function  ]