The ________ function in R is used to split a string into components based on a specific character or string.

  • divide()
  • separate()
  • split()
  • strsplit()
The strsplit() function in R is used to split a string into components based on a specific character or string. For example, strsplit("Hello World", " ") would return a list with two components: "Hello" and "World".
Add your answer
Loading...

Leave a comment

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