TRUE
value in a logical vector.TRUE
value in a logical
vector.first(x, na.omit = TRUE)last(x, na.omit = TRUE)
logical
]
Logical vector.logical(1)
]
Should NAs be
omitted from x
?. Default is TRUE
.integer(1)
| integer(0)
]. Returns the index
of the first/last TRUE
value in x
or an empty
integer vector if none is found. If NAs are encountered
before a TRUE
and not omitted, the result is
NA_integer_
.