title: Trying to turn continuous variable into categorical variable with unequal sizes
body: <p><strong>I am trying to turn Failures_Avg from continuous into a factor of 3 levels.</strong></p>
  <p>Use &lt;- read_csv(&quot;FinalData.csv&quot;)%&gt;% filter(Week %between% c(&quot;1&quot;, &quot;7&quot;)) %&gt;% dplyr::select(-c(LactationNumber,DaysPerWeek, TotalWeeks))%&gt;%
  mutate_at(vars(Farm,Parity,CowNr,Week,Failures_Avg), as.factor)%&gt;%
  mutate_at(vars(Milk_AvgDay,Milk_AvgVisit,IntervalCV), as.numeric)%&gt;%
  group_by(Farm,CowNr)</p>
  <p>Here I read in failures_Avg as a categorical variable but since it is continuous there are about 65 levels. I am trying to change it from this into</p>
  <p>Low - =0</p>
  <p>Med - Between 0 &amp; including 1</p>
  <p>High - Greater than 1</p>
  <p><strong>Thank you in advance</strong></p>