Generating a logical vector (4)

1:12 %in% c(1, 5, 11)
##  [1]  TRUE FALSE FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE  TRUE FALSE