In R, the ________ function is used to concatenate vectors after converting to character.

  • None of the above
  • concat()
  • merge()
  • paste()
In R, the 'paste()' function is used to concatenate vectors element-wise after converting them to character. The result is a character vector. For example, 'paste(c("Hello", "Goodbye"), c("world!", "friends!"))' would return a vector containing "Hello world!" and "Goodbye friends!".
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *