row_completeness {eHDPrep}R Documentation

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)

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.

Value

Tibble detailing completeness statistics for each row in input data.

See Also

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

Examples

data(example_data)
row_completeness(example_data, patient_id)

[Package eHDPrep version 1.2.1 Index]