The 'collapse' argument in the paste() function is used to ________ the elements of the resulting vector.

  • None of the above
  • collapse into a single string
  • join
  • separate
The 'collapse' argument in the paste() function is used to collapse the elements of the resulting vector into a single string with a specified separator. For example, 'paste(c("Hello", "world!"), collapse = " ")' would return "Hello world!".
Add your answer
Loading...

Leave a comment

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