non_na: Return indexes of values that are (or are not) NA

View source: R/non_na.R

non_naR Documentation

Return indexes of values that are (or are not) NA

Description

Numeric indexes of non-NA values in a vector

Usage

non_na(x, negate = FALSE)

Arguments

x

A vector.

negate

If 'TRUE', return indexes of NA values.

Examples

non_na(c(1, 2, NA, 3, NA))
non_na(c(1, 2, NA, 3, NA), negate = TRUE)

overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.