Introduction
The substring() function in R is used to extract a substring from a character vector. The syntax of the function is:
substring(x, start, stop)
where:

x is the character vector from which to extract the substring
start is the starti…

Continue reading: The substring() function in …