where_na {naniar}R 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)


[Package naniar version 1.1.0 Index]