findMissing: Find missing or invalid data

Description Usage Arguments Details Value

Description

A function to find missings values or values that should not be defined in a data frame.

Usage

1
findMissing(data, values = c(NA), invalids = TRUE)

Arguments

data

A data frame

values

A vector of values to look or not to look for (see invalids). Defaults to NA.

invalids

logical. Are the values entered valid or invalid values? See Details.

Details

If invalids is set to FALSE, the values entered in values are the valid ones, all other values are reported. If set to TRUE, values specified in values are invalid and reported.

Value

Returns a list with an entry for each variable that has missing values (or invalid values), the position of the missing or invalid values as well as the percentage of missing or invalid values per variable. Add some values here.


kthorstmann/horst documentation built on May 20, 2019, 7:04 p.m.