powered by
replacePatterns
data("crude") crude[[1]] replacePatterns(crude[[1]], "[[:space:]]((C|c)orp|copany)[[:space:]]", "company ")
Run the code above in your browser using DataLab