FreqTableMissingValues: Count the number of missing values in each variable in a...

View source: R/DataUnderstanding.R

FreqTableMissingValuesR Documentation

Count the number of missing values in each variable in a data.frame

Description

Counts the number of missing values of each variable in a data.frame and returns either absolute or relative values (argument 'absoluteValues')

Usage

FreqTableMissingValues(DataFrame, absoluteValues = TRUE, chart = FALSE)

Arguments

DataFrame

data.frame. Contains the variables which should be investigated.

absoluteValues.

boolean. If TRUE, absolute values will be printed out, if FALSE, relative values. Default are absolute values.

Value

data.frame. Returns a data.frame with variable names, number of valid cases and number of missing cases.

Examples

## dataset airquality contains NAs
airquality[1:8,]
# absolute values
FreqTableMissingValues(DataFrame = airquality, absoluteValues = TRUE, chart = FALSE)
# relative values with chart
FreqTableMissingValues(DataFrame = airquality, absoluteValues = FALSE, chart = TRUE)

masem-research/masemDataUnderstanding documentation built on May 5, 2022, 12:40 a.m.