Learn R Programming

tidytidbits (version 0.3.2)

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, ...)

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

Run this code
# NOT RUN {
# 5
first_not(1, 1,1,1,5)
# }

Run the code above in your browser using DataLab