first_which_non_na_at {tidytidbits}R Documentation

Row-wise first index of column that is not NA

Description

Row-wise first index of column that is not NA

Usage

first_which_non_na_at(.tbl, ...)

Arguments

.tbl

A data frame

...

A column selection, as for dplyr::select

Value

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


[Package tidytidbits version 0.3.2 Index]