Learn R Programming

eHDPrep (version 1.3.3)

variable_completeness: Calculate Variable Completeness in a Data Frame

Description

Calculates the completeness of each variable in a data frame.

Usage

variable_completeness(data)

Value

Tibble detailing completeness statistics for each variable.

Arguments

data

Data frame.

Details

This is achieved by comparing the number of NA to non-NA values. Returns the count of NA as well as the percentage of NA values and the percentage completeness.

See Also

Other measures of completeness: assess_completeness(), compare_completeness(), completeness_heatmap(), plot_completeness(), row_completeness()

Examples

Run this code
data(example_data)
variable_completeness(example_data)

Run the code above in your browser using DataLab