Calculate the proportion of cases (rows) that contain missing or complete values.

prop_miss_case(data)

prop_complete_case(data)

Arguments

data

a dataframe

Value

numeric the proportion of cases that contain a missing or complete value

See also

Examples

prop_miss_case(airquality)
#> [1] 0.2745098
prop_complete_case(airquality)
#> [1] 0.7254902