How to concatenate two strings?

5

Assuming I have two strings, Olá  and mundo! , how do I concatenate them using R?

    
asked by anonymous 10.09.2016 / 16:34

1 answer

8

Using the command paste :

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

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

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

    
10.09.2016 / 16:53