title: Dplyr filter based on less than equal to condition in R
body: <p>I am trying to subset a data based on <code>&lt;=</code> logic using <code>dplyr</code> in <code>R</code>. Even after running <code>filter</code> function, the data is not being filtered.</p>
  <p>How can I fix this?</p>
  <p>Code</p>
  <pre><code>library(tidyverse)
      
  value = c(&quot;a,b,c,d,e,f&quot;)
  Year = c(2020,2020,2020,2020,2020,2020)
  Month = c(01,01,12,12,07,07)
  dummy_df = data.frame(value, Year, Month)
  dummy_df = dplyr::filter(dummy_df, Month &lt;=07)
  </code></pre>
  <p>Now on a <code>dummy</code> data frame this does work, but when I use this function on an actual data set with in which I created <code>Year</code>, <code>Month</code> and <code>Day</code> columns using <code>lubridate</code>; I still see data from months greater than <code>07</code>.</p>