How to concatenate two strings?

Asked

Viewed 6,021 times

5

Supposing I have two strings, Olá  and mundo!, as I grant them using R?

1 answer

11


Through command paste:

paste("Olá", "mundo!", sep=" ")
[1] "Olá mundo!"

paste("Olá", "mundo!", sep="-")
[1] "Olá-mundo!"

Use the command ?paste to access the function help and learn its other particularities.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.