title: How to split a character vector based on a numeric vector for positions
body: <p>I would like to split a character vector into substrings based on a second numeric vector for the splitting points</p>
  
  <pre><code>vec &lt;- "LAYRVCMTNEGHPWVSLVVQKTRLQISQDPSLNYEYLPTMGLKSFIQASLALLFGKHSQAIVENRVGGVHTVGDSGAFQLGVQFLRAWHKDARIVYIISSQKELHGLVFQDMGFTVYEYSVWDPKKLCMDPDILLNVVEQIPHGCVLVMGNIIDCKLTPSGWAKLMSM"
  split.points &lt;- c(25, 32, 55, 90, 124)
  </code></pre>
  
  <p>I would like to cut the above character vector at the positions given in the <code>split.points</code> vector into six different substrings.</p>
  
  <p>It sounds very simple, but the <code>split</code> command I know works either only with specific regex (patterns) or with a set length of substrings.</p>
  
  <p>I would appreciate any help.</p>