Skip to Content

Piyush is a data scientist passionate about using data to understand things better and make informed decisions. In the past, he's worked as a Data Scientist for ZS and holds an engineering degree from IIT Roorkee. His hobbies include watching cricket, reading, and working on side projects.

R – Replace Occurrences Of Character in a String

The R programming language comes with a number of useful built-in functions to work with strings. In this tutorial, we will look at how to replace a character in a string in R with the help of some examples. How to replace a character in a string in R? You can use the gsub() function …

Read More about R – Replace Occurrences Of Character in a String

Concatenate Two or More Strings in R

The R programming language comes with a number of useful built-in functions to work with strings. In this tutorial, we will look at one such function to concatenate two or more strings in R with the help of some examples. How to concatenate strings in R? You can use the built-in paste() function to concatenate …

Read More about Concatenate Two or More Strings in R

Check If a String in R starts with Another String

In this tutorial, we will look at how to check whether a string in R starts with a specific string (or character) or not with the help of examples. How to check if a string in R begins with a specific string? From the R version 3.3.0, you can use the built-in startsWith() function to …

Read More about Check If a String in R starts with Another String