Generating a logical vector (3)

flights |> 
  mutate(daytime = dep_time > 600, .keep = "used") |> 
  filter(daytime)
## # A tibble: 319,177 × 2
##    dep_time daytime
##       <int> <lgl>  
##  1      601 TRUE   
##  2      602 TRUE   
##  3      602 TRUE   
##  4      606 TRUE   
##  5      606 TRUE   
##  6      607 TRUE   
##  7      608 TRUE   
##  8      611 TRUE   
##  9      613 TRUE   
## 10      615 TRUE   
## # ℹ 319,167 more rows