String manipulation functions in R ( part 2)

First part of this series of posts.


This is the second part of a series of posts that treat the subject of strings and text manipulation in R. Every time some functions are picked with basic examples and shared here. I hope that at the end of this series, I'll have a good archive of lessons from beginners level to expert level.

The points we will see in this part 2 are:

  1. character encoding 
  2. length of a string 
  3. lowercase and uppercase conversion 
  4. basic string comparison 
  5. concatenating strings
  6. extracting sub-strings 

character encoding 





length of a string 



lowercase and uppercase conversion



basic string comparison 


concatenating strings


extracting sub-strings 


The full code used is here:


I hope this part is helpful to you!
If you encounter any trouble implementing the code, please let me know.











Popular posts from this blog

Mathematical Symbols in LATEX

Analyzing Twitter data with R (part 3: Cleaning & organizing the Data)

Linkin Park: Analyzing the causes of death of Rock band members