可以用这两个函数大小写转换:toupper()和tolower()
text = "abcDEF"
toupper(text)
tolower(text)
# [1] "ABCDEF"
# [1] "abcdef"