R remove first character from string
<p>I can remove the last character from a string:</p>

<pre><code>listfruit  &lt;- c("aapplea","bbananab","oranggeo")
gsub('.{1}$', '', listfruit)
</code></pre>

<p>But I am having problems trying to remove the first character from a string.
And also the first and last character.
I would be grateful for your help.</p>