first_which_non_na_at: Row-wise first index of column that is not NA

View source: R/na.R

first_which_non_na_atR 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


tidytidbits documentation built on March 18, 2022, 6:10 p.m.