first_which_not_na | R Documentation |
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.
# 4 first_which_not_na(NA, NA, NA, 56)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.