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

miss_var_pct(data)

complete_var_pct(data)

Arguments

data

a dataframe

Value

numeric the percent of variables that contain missing or complete data

See also

Examples

miss_var_pct(riskfactors)
#> [1] 70.58824
miss_var_pct(oceanbuoys)
#> [1] 37.5
complete_var_pct(riskfactors)
#> [1] 29.41176
complete_var_pct(oceanbuoys)
#> [1] 62.5