For this week, the topic we discussed is character strings in R. This lab’s content is a steppingstone for text analysis. We started with introducing the concept of characters, character strings, and character string vectors in R. Then, we talked about operations on strings such as getting substring and combining different character strings. Finally, we learned about extracting and replacing certain patterns within a text-form data set.
Here is the link to the script for this open lab:
Here is a reference for regular expressions in R:
Thank you all for showing up. If you have further question regarding topics covered in the material, please feel free to drop by during next week’s lab or email me or leave a comment.
See you all next week!