first_which_non_na_at | R Documentation |
Row-wise first index of column that is not NA
first_which_non_na_at(.tbl, ...)
.tbl |
A data frame |
... |
A column selection, as for |
A numeric vector of length nrow(.tbl) containing the index of the first found non-na value in the given columns. Possible values are NA (all values in that row are NA), and 1 ... number of columns in selection
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.