Calculate the percentage of variables that contain a single missing or complete value.

pct_miss_var(data)

pct_complete_var(data)

Arguments

data

a dataframe

Value

numeric the percent of variables that contain missing or complete data

See also

Examples

prop_miss_var(riskfactors)
#> [1] 0.7058824
prop_miss_var(oceanbuoys)
#> [1] 0.375
prop_complete_var(riskfactors)
#> [1] 0.2941176
prop_complete_var(oceanbuoys)
#> [1] 0.625