title: R split string by symbol
body: <p>Example: </p>
  
  <pre><code>string = "abc|3g"
  function(string)
  Solution: --&gt; "abc" "3g"
  </code></pre>
  
  <p>Is there any idea how to split in the way as showed in the example? </p>