Which function is used to concatenate strings in R?

Which function is used to concatenate strings in R?

a) concat()
b) paste()
c) join()
d) merge()

Answer:

b) paste()

Explanation:

The paste() function in R is used to concatenate two or more strings together.

Reference:

R Programming – String MCQ Questions and Answers

Scroll to Top