"abc" "3g" Is there any idea on how t...">

R splits the string with a character

Example:

string = "abc|3g"
function(string)
Solution: --> "abc" "3g"

      

Is there any idea on how to split like shown in the example?

+3


source to share


1 answer


strsplit(string,split='|', fixed=TRUE)

      



This is a possible answer. Other solutions?

+6


source







All Articles