Learn R Programming

emil (version 2.2.3)

na_index: Support function for identifying missing values

Description

Support function for identifying missing values

Usage

na_index(data)

Arguments

Value

Data frame containing row and column indices of missing values or NULL if the data doesn't contain any.

Examples

Run this code
x <- as.matrix(iris[-5])
y <- iris$Species
x[sample(length(x), 10)] <- NA
cv <- resample("crossvalidation", y)
sets <- pre_split(x, y, cv[[1]])
sets <- pre_remove(sets, 3L)
na_index(sets)

Run the code above in your browser using DataLab