In this tutorial, we will learn about gsub() function in R to replace all matching patterns in a string. gsub, stands for "global substitution" is similar to another function R, sub(), but for substituting all matching patterns, not just the first one. Here is a typical use of … [Read more...] about gsub() in R to replace all matching patterns