findMissings: findMissings

Description Usage Arguments Value Examples

View source: R/findMissings.R

Description

findMissings provides a vector (per variable), containing the observations in the dataset.

Usage

1
findMissings(data, vars, idVar = NULL)

Arguments

data

data containing 'vars'

vars

list of variable names to be checked for missing

idVar

id variable which will be printed showing which observations are missing data for vars. If NULL, then row.names() will be printed.

Value

a list of missing ids/row.names per variable listed in vars

Examples

1
2
3
#missdata <- data.frame(id = 1:1000, C1 = sample(c(1,NA), 1000, replace=TRUE,
#                       prob=c(.8,.2)), C2 = sample(c(1,NA), 1000, replace=TRUE, prob=c(.8,.2)))
#findMissings(data = missdata, vars = c("C1", "C2"),idVar = "id")

TaylorAndrew/atExplore documentation built on May 10, 2017, 4:39 p.m.