【发布时间】:2012-07-25 04:51:03
【问题描述】:
在R中,我想转换
t1 <- c('this.text', 'next.text')
"this.text" "next.text"
到
'ThisText' 'NextText'
我试过了
gsub('\\..', '', t1)
但这给了我
"thisext" "nextext"
因为它不会替换句点后的字母。
可能真的很容易,但我无法解决。
【问题讨论】:
-
请用下面的实际答案回答您的问题,而不是将其编辑到您的问题中。
标签: r camelcasing