Ask Your Question

Revision history [back]

The method for merging the paste() and print() functions in R is to use cat() function. The cat() function takes one or more R objects and concatenate them, separating them by a space. It also prints the result to the console by default.

For example:

x <- "Hello"
y <- "world"
cat(paste(x, y))

Output:

Hello world