title: Lubridate filter for month and hour in data frame
body: <p>I've been trying to figure out how to use the lubridate &amp; tidyverse package to filter for a specific hour (2pm) in my dataset within the subset of the month of January. The dataset itself has 4 years of meteorological data and I'm trying to find the mean daily AirTemp at 2pm in January for the 4 years</p>
  <p>my data currently looks like this:</p>
  <p><strong>Data</strong></p>
  <pre><code>structure(list(Timestamp = c(&quot;2010-01-01 01:00:00&quot;, &quot;2010-01-01 02:00:00&quot;, 
  &quot;2010-01-01 03:00:00&quot;, &quot;2010-01-01 04:00:00&quot;, &quot;2010-01-01 05:00:00&quot;, 
  &quot;2010-01-01 06:00:00&quot;), Temp = c(44L, 44L, 44L, 44L, 43L, 42L
  ), Humid = c(100L, 96L, 93L, 89L, 89L, 83L), Precip = c(0L, 0L, 
  0L, 0L, 0L, 0L)), class = &quot;data.frame&quot;, row.names = c(&quot;1&quot;, &quot;2&quot;, 
  &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;))
  
              Timestamp    Temp    Humid      Precip 
  1 2010-01-01 01:00:00      44      100           0 
  2 2010-01-01 02:00:00      44       96           0 
  3 2010-01-01 03:00:00      44       93           0 
  4 2010-01-01 04:00:00      44       89           0 
  5 2010-01-01 05:00:00      43       89           0 
  6 2010-01-01 06:00:00      42       83           0 
  </code></pre>
  <p>I've tried writing my filters so many time but there seems to be a misunderstanding in the way I'm writing my syntax I think</p>
  <p>e.g.</p>
  <pre><code>weather %&gt;% 
  mutate(gethour = hour(weather$Timestamp)) %&gt;% 
  filter(gethour == gethour(&quot;2:00 PM&quot;))
  </code></pre>
  <p>every time I try to write a simple filter I get errors, does anyone know what Im doing wrong?</p>