Learn R Programming

eHDPrep (version 1.3.3)

row_completeness: Calculate Row Completeness in a Data Frame

Description

Calculates the completeness of each row/observation in a data frame.

Usage

row_completeness(data, id_var)

Value

Tibble detailing completeness statistics for each row in input data.

Arguments

data

Data frame.

id_var

Row identifier variable.

Details

Row completeness is measured 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(), variable_completeness()

Examples

Run this code
data(example_data)
row_completeness(example_data, patient_id)

Run the code above in your browser using DataLab