title: Used of NROW to be able to count values in a specific interval
body: <p>I loaded the weather database in Rattle and i was able to count the numbers of observation greater than 20 and less and equal to 20 for &quot;Temp3pm&quot; :</p>
  <blockquote>
  <p>library(rattle)</p>
  <p>g &lt;- nrow(subset(weather, Temp3pm &gt; 20))</p>
  <p>g</p>
  </blockquote>
  <p>[1] 150</p>
  <blockquote>
  <p>s &lt;- nrow(subset(weather, Temp3pm &lt;= 20))</p>
  <p>s</p>
  </blockquote>
  <p>[1] 216</p>
  <p>My question is how can i count the number of rows that contains &quot;No&quot; and &quot;Yes&quot; for RainTomorrow because:</p>
  <blockquote>
  <p>m &lt;- nrow(subset(weather, RainTomorrow = No))</p>
  <p>m</p>
  </blockquote>
  <p>[1] 366</p>
  <p>which is not the right answer i believe i have to either add or change the code i used to get the correct count.
  Some help will be appreciated thank you.</p>