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(airquality)
#> [1] 0.3333333
prop_complete_var(airquality)
#> [1] 0.6666667