title: First entry from string split
body: <p>I've got a column <code>people$food</code> that has entries like <code>chocolate</code> or <code>apple-orange-strawberry</code>.</p>
  
  <p>I want to split <code>people$food</code> by <code>-</code> and get the first entry from the split.</p>
  
  <p>In python, the solution would be <code>food.split('-')[0]</code>, but I can't find an equivalent for R.</p>