Calculate the proportion of variables that contain a single missing or complete values.

prop_miss_var(data)

prop_complete_var(data)

Arguments

data

a dataframe

Value

numeric the proportion 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