O'Reilly logo

Data Manipulation with R - Second Edition by Jaynal Abedin, Kishor Kumar Das

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Text processing using default functions

Some of you might not be interested in text mining, but you still need to process text data in your day-to-day activities. In this section, we will try to give some examples that will be helpful for your daily needs. The following are the general tasks that we need to perform frequently:

  • Removing certain characters or words from a string
  • Splitting the character string to get structured information
  • Matching certain parts of the characters to find out some patterns
  • Changing lowercase to uppercase, and vice versa
  • Calculating the number of characters in a string
  • Extracting a certain part from a string
  • Extracting only digits from a string

We will see an example for each case listed previously. First, we will remove a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required