title: filter or subset list by partial object name in R
body: <p>I have a list with 417 data frames in it. Each data frame has a separate name in the list beginning with "Dec 1981" and ending with "Aug 2016". The objects are in chronological order.</p>
  
  <p>I would like to subset or filter this list just by month name. For example, create a new list object with just the Jan objects(data frames). The name of my list is <code>SST_list</code> and I've attempted a few different solution so far. None of which work. </p>
  
  <pre><code>Jan_data &lt;- SST_list[names(SST_list)=="Jan"]  
  </code></pre>
  
  <p>That returns nothing, but is to be expected. I have attempted some code with grep and grepl, but those crash my R session. </p>
  
  <p>I also tried </p>
  
  <pre><code>Jan_data &lt;- lapply(SST_list, "[","Jan")
  </code></pre>
  
  <p>but no luck there. </p>
  
  <p>This seems like it should be a simple task, but I'm having quite a bit of trouble. </p>