In R, I want to convert
t1 <- c('this.text', 'next.text')
"this.text" "next.text"
to
'ThisText' 'NextText'
I have tried
gsub('\\..', '', t1)
But this gives me
"thisext" "nextext"
as it does not replace the letter after the period.
Probably really easy but I can't work it out.