Learn R Programming

emil (version 2.2.10)

na_index: Support function for identifying missing values

Description

Support function for identifying missing values

Usage

na_index(data)

Arguments

data

Fitting and testing data sets, as returned by pre_split.

Value

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

Examples

Run this code
# NOT RUN {
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