Learn R Programming

tidytidbits (version 0.3.2)

first_non_nas_at: Row-wise first value that is not NA

Description

Row-wise first value that is not NA

Usage

first_non_nas_at(.tbl, ...)

Arguments

.tbl

A data frame

...

A column selection, as for dplyr::select

Value

A vector of length nrow(.tbl) containing the first found non-na value