I’m taking this opportunity to work through R with Stefan Gries' practical introduction called Quantitative Corpus Linguistics with R. I didn’t find anyone working through R at my speed and level when I was first starting, so you’re welcome to try this with me, either with Gries' book or just with R.
In this episode, I look at functions to find as well as replace matches in character strings in vectors in R.
Episode Includes:
strapply()
gsub()
grep()
nchar()
cat()
regular expressions, including ^ , . , …, \\