Learn R Programming

naniar (version 0.6.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)

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

Run this code
# NOT RUN {
where_na(airquality)
where_na(oceanbuoys$sea_temp_c)

# }

Run the code above in your browser using DataLab