string <- ‘abcd’ 大写 > toupper(string) #大写 [1] "ABCD" 首字母大写 > stringr::str_to_title(string) #首字母大写 [1] "Abcd" 小写 > tolower(string )#小写 [1] "abcd"