powered by
First which() is not na
first_which_not_na(...)
Values; concatenated as given. Intended use is with one vector of length > 1 or multiple single arguments.
The index of the first value which is not NA, or NA iff all elements are NA.
# NOT RUN { # 4 first_which_not_na(NA, NA, NA, 56) # }
Run the code above in your browser using DataLab