where_na: Which rows and cols contain missings?

View source: R/where-na.R

where_naR Documentation

Which rows and cols contain missings?

Description

Internal function that is short for which(is.na(x), arr.ind = TRUE). Creates array index locations of missing values in a dataframe.

Usage

where_na(x)

Arguments

x

a dataframe

Value

a matrix with columns "row" and "col", which refer to the row and column that identify the position of a missing value in a dataframe

See Also

which_na()

Examples


where_na(airquality)
where_na(oceanbuoys$sea_temp_c)


njtierney/naniar documentation built on March 19, 2024, 9:48 p.m.