R 常用字符处理函数整理如下. 类型 函数 西文大小写转换 toupper/tolower 计算字节数 nchar 选择, 匹配, 替换 substr, grep, sub 组合, 分割 paseter, strsplit