Learn R Programming

tidytidbits (version 0.3.3)

first_not: First argument that does not equal a given value

Description

First argument that does not equal a given value

Usage

first_not(not, ...)

Value

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

Arguments

not

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

...

Values

Examples

Run this code
# 5
first_not(1, 1,1,1,5)

Run the code above in your browser using DataLab