naniar (version 1.1.0)

where_na: 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)

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

Arguments

x

a dataframe

See Also

which_na()

Examples

Run this code

where_na(airquality)
where_na(oceanbuoys$sea_temp_c)

Run the code above in your browser using DataLab