I am trying to write the following script but I am only getting 7 or 40 back even thought the condition to satisfy all other variables exists. I am not very good with looping so I am not sure how to write this:
Input2$SetUpTime<-
if_else(Input2$finished_surface_area_inches < 10, "5",
if_else(Input2$finished_surface_area_inches < 60, "7",
if_else(Input2$finished_surface_area_inches < 200, "10",
if_else(Input2$finished_surface_area_inches < 1000, "20",
if_else(Input2$finished_surface_area_inches < 4000, "40", NA)))))