Description Usage Arguments Examples
View source: R/find_last_non_na_value.R
Take vector and start at the end, to find the last non-NA element to look for by |.
1 |
vec |
A datafame |
1 2 | c(1, 2, NA_integer_, 4, 5, NA_integer_, NA_integer_) %>% find_last_non_na_value()
sample(c(letters, rep(NA_character_, 3))) %>% find_last_non_na_value()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.