My Blog

My WordPress Blog

My Blog

My WordPress Blog

How to concatenate strings in R?

We can concatenate two or more strings in R by using the paste() or cat() functions. The first approach is more popular. Both functions take in any number of strings to be concatenated and can also take in an optional parameter sep (along with some other optional parameters)—a character or a sequence of characters that will separate attached strings in the resulting string (a white space by default).

How to concatenate strings in R?

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top