摘自:http://www.biostatistic.net/thread-195-1-1.html
用于字符串分割的函数:如strsplit('123abcdefgabcdef','ab')[[1]][1] "123" "cdefg" "cdef" #字符串连接:paste() #paste(...,
sep = " ", collapse = NULL)
#字符串分割:strsplit() #strsplit(x,
split, extended = TRUE, fixed = FALSE, perl = FALSE)
#计算字符串的字符数:nchar()#字符串截取:substr(x, start, stop)substring(text,
first, last = 1000000)substr(x, start, stop)
<- valuesubstring(text,
first, last = 1000000)
<- value#####......
阅读全文