In this R tutorial, I’ll show you how to apply the substr and substring functions.I’ll explain both functions in the same article, since the R syntax and the output of the two functions is very similar. You will learn in which situation you should use which of the two functions. R substr & substring Functions | Examples: Remove, Replace, Match in String .