RosettaCodeData/Task/String-concatenation/R/string-concatenation.r

5 lines
209 B
R

hello <- "hello"
paste(hello, "literal") # "hello literal"
hl <- paste(hello, "literal") #saves concatenates string to a new variable
paste("no", "spaces", "between", "words", sep="") # "nospacesbetweenwords"