title: Converting multiple year ranges into a list of years in R
body: <p>I have a column of dates from which I am trying to create a list of years for each row.  For example, this is a few rows of my data:</p>
  
  <pre><code>1997-2001
  1994
  2007-2009; 2013-2015; 2016
  2007-2008; 2014
  </code></pre>
  
  <p>For example, for the first row I want a list containing: 1997, 1998, 1999, 2000 and 2001.  For the second row I want a list containing just 1994. For the 3rd row I want a list containing: 2007, 2008, 2009, 2013, 2014, 2015, and 2016. and so on like this.  Is there a way to do this?</p>