How to paste two character vector in R

r

#1

I have created two vector

x<-"my"
y<-"name"

I want these two become a single statement with’ _’ symbol between them and I have used the paste function but I am able to generate the whole as one character “my name” but I am not able to generate with any specific symbol between them


#2

Check out the paste function:
https://stat.ethz.ch/R-manual/R-devel/library/base/html/paste.html

The above can be achieved by:

paste(x,y,sep="_")

Hope this helps!