title: R how to get a list of characters in a string
body: <p>In R how could i get list of characters that are contained in a string. I have provided an example below</p>
  
  <pre><code>somefunction("abc")
  should return
  "a","b","c"
  </code></pre>
  
  <p>=============================update1</p>
  
  <p>I am planning to get all the characters, sort them and join them back. I tried paste function but it didnt work :( Any inputs?</p>
  
  <pre><code>sort(strsplit('cba','')[[1]])
  paste(sort(strsplit('cba','')[[1]]))
  </code></pre>