Generating a logical vector (9)

flights |> 
  mutate(
    daytime = dep_time > 600 & dep_time < 2000,
    .keep = "used"
  )
## # A tibble: 336,776 × 2
##    dep_time daytime
##       <int> <lgl>  
##  1      517 FALSE  
##  2      533 FALSE  
##  3      542 FALSE  
##  4      544 FALSE  
##  5      554 FALSE  
##  6      554 FALSE  
##  7      555 FALSE  
##  8      557 FALSE  
##  9      557 FALSE  
## 10      558 FALSE  
## # ℹ 336,766 more rows