R split string by symbol

后端 未结 1 1575
天命终不由人
天命终不由人 2020-12-03 14:23

Example:

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

Is there any idea how to split in the way as showed in the e

相关标签:
1条回答
  • 2020-12-03 14:43
    strsplit(string,split='|', fixed=TRUE)
    

    This is the possible answer. Other solutions?

    0 讨论(0)
提交回复
热议问题