powered by
TRUE
which.first(x, use.names = TRUE) which.last(x, use.names = TRUE)
logical
logical(1)
x
integer(1)
integer(0)
which.first(c(FALSE, TRUE)) which.last(c(FALSE, FALSE))
Run the code above in your browser using DataLab