Generating a logical vector (6)

… so the logical vector does not have to be stored in order to filter data – it is created on the fly:

flights |> 
  filter(dep_time > 600)
## # A tibble: 319,177 × 19
##     year month   day dep_time sched_dep_time dep_delay arr_time sched_arr_time
##    <int> <int> <int>    <int>          <int>     <dbl>    <int>          <int>
##  1  2013     1     1      601            600         1      844            850
##  2  2013     1     1      602            610        -8      812            820
##  3  2013     1     1      602            605        -3      821            805
##  4  2013     1     1      606            610        -4      858            910
##  5  2013     1     1      606            610        -4      837            845
##  6  2013     1     1      607            607         0      858            915
##  7  2013     1     1      608            600         8      807            735
##  8  2013     1     1      611            600        11      945            931
##  9  2013     1     1      613            610         3      925            921
## 10  2013     1     1      615            615         0     1039           1100
## # ℹ 319,167 more rows
## # ℹ 11 more variables: arr_delay <dbl>, carrier <chr>, flight <int>,
## #   tailnum <chr>, origin <chr>, dest <chr>, air_time <dbl>, distance <dbl>,
## #   hour <dbl>, minute <dbl>, time_hour <dttm>