Changing Uppercase And Lowercase

Want to learn more? I recommend working through: R for Data Science, R Cookbook, and R Graphics Cookbook.

# create a character vector
text <- c("DSFGSsdffdsDSF", "DdsFDSFsdfSsdf", "DDDDDDDD", "kkkkkkkk")
# convert to upper case
toupper(text)
[1] "DSFGSSDFFDSDSF" "DDSFDSFSDFSSDF" "DDDDDDDD"       "KKKKKKKK"
# convert to all lower case
tolower(text)
[1] "dsfgssdffdsdsf" "ddsfdsfsdfssdf" "dddddddd"       "kkkkkkkk"