na_which: na_which: Identify missing values

Description Usage Arguments Details Value Examples

View source: R/na_which.R

Description

Return the indexes of those values that are missing

Usage

1
2
3
4
5
6
7
8
na_which(x)

## Default S3 method:
na_which(x)

na_which_data.frame(x)

which_na(x)

Arguments

x

Vector to search for missing values

Details

Implemented as .

For data.frames:

Value

integer of indexes of x that are NA. The names of the returned vector are set to the names of x. that are NA.

Examples

1
2
  x <- c( 1, NA, NA, 3:6 )
  na_which(x)

decisionpatterns/na.actions documentation built on Aug. 25, 2020, 8:04 p.m.