Generating a logical vector (5)

A comparison is a logical vector…

class(flights$dep_time > 600)
## [1] "logical"
length(flights$dep_time > 600)
## [1] 336776
head(flights$dep_time > 600)
## [1] FALSE FALSE FALSE FALSE FALSE FALSE