By providing a set of wrappers to existing functions, the stringr package allows for simple, consistent and efficient manipulations of strings in R. Even though there are some more basic packages that offer strings-related functions, you might find yourself in need for a more complete and straightforward solution for handling strings in R. With a […]
character strings
Regular Expressions Fundamentals – Exercises
Regular expressions is one of the skills you need to drill and drill until they become second nature. You never know when you will need them, just that you WILL need them. In this exercise set, we will go through some of the fundamentals relying on base R only. If you are already an expert, […]
Stringr Basic Functions: Exercises
The more ubiquitous data becomes, the number of standards and ways the data can get to you in a messy state both increase. I’ve found that many projects I’ve worked on, to my surprise, turned out to need a substantial amount of text processing skills. Base R has some powerful tools to manipulate strings, but […]
Text Data Wrangling: Exercises
In a previous exercise set, we practiced retrieving data from Twitter. In this exercise, we start getting comfortable with manipulating text data. We will start by refreshing our memory on how to use some base-R functions, then we start using the tm package. Answers to the exercises are available here. Exercise 1 Use readLines to […]
More string Hacking with Regex and Rebus
For a begineer in R or any language,regular expression might seem like a daunting task . Rebus package in R gives a lowers the barrier for common regular expression tasks and is useful for a begineer or even for advanced users for most of the common regex skills in a more intuitive yet verbose way […]
Hacking Strings with stringi
In the last set of exercises, we worked on the basic concepts of string manipulation with stringr. In this one we will go further into hacking strings universe and learn how to use stringi package.Note that stringi acts as a backend of stringr but have many more useful string manipulation functions compared to stringr and […]
Hacking strings with stringr
This is first of the set of exercise on string manipulation with stringr Answers to the exercises are available here. If you obtained a different (correct) answer than those listed on the solutions page, please feel free to post your answer as a comment on that page. Exercise 1 use a stringr function to merge […]
Character Functions (Advanced)
This set of exercises will help you to help you improve your skills with character functions in R. Most of the exercises are related with text mining, a statistical technique that analyses text using statistics. If you find them interesting I would suggest checking the library tm, this includes functions designed for this task. There […]
Protected: Introduction to Text Mining Exercises
There is no excerpt because this is a protected post.
Protected: Character Functions (Intermediate)
There is no excerpt because this is a protected post.