title: Searching for scenarios in list with incomplete name in R
body: <p>I have a list in which I have stored the value of several simulations. This list consists of 4 columns: date, model, scenario and value.</p>
  
  <p>For each model there are 3*500 scenarios. And each date, every model (10) are simulated.</p>
  
  <p>There are 3 groups of scenarios of 500 elements each. And they are coded with some letters and some numbers. Let's supose that they are grouped as follows:</p>
  
  <p>Scenary_1,Scenary_1,Scenary_2.....Scenary_499 Scenary_Stressed_0,Scenary_Stressed_1,Scenary_Stressed_2...Scenary_Stressed_499 Scenary_Normal_0,Scenary_Normal_1,Scenary_Normal_2...Scenary_Normal_499</p>
  
  <p>Is there any way in which I can select all the Stressed Scenarios in a certain date for a certain model?</p>
  
  <p>I have tried several options like this but I don't get the result:</p>
  
  <pre><code>result&lt;-data[which(data$model=="model1" &amp; data$date==20150101 &amp; data$scenario=="Scenary_Stressed"*),]
  </code></pre>
  
  <p>Note: I can obtain all scenarios with:</p>
  
  <pre><code>result&lt;-data[which(data$model=="model1" &amp; data$date==20150101),]
  </code></pre>
  
  <p>but is not what I want</p>