# Example R program to concatenate two strings str1 = 'Hello' str2 = 'World!' # concatenate two strings using paste function result = paste(str1,str2,sep="") print (result)