first_not: First argument that does not equal a given value

View source: R/na.R

first_notR Documentation

First argument that does not equal a given value

Description

First argument that does not equal a given value

Usage

first_not(not, ...)

Arguments

not

Value: we look for the first value not equal to this one

...

Values

Value

The first value that does not equal "not", or NA iff all equal "not"

Examples

# 5
first_not(1, 1,1,1,5)

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