Summary of missing values

missing_glimpse(.data, dependent = NULL, explanatory = NULL,
  digits = 1)

Arguments

.data

Data frame.

dependent

Optional character vector: name(s) of depdendent variable(s).

explanatory

Optional character vector: name(s) of explanatory variable(s).

digits

Number of decmial places to show for percentage missing.

Value

Data frame.

Examples

colon_s %>% missing_glimpse()
#> label var_type n missing_n #> id id <dbl> 929 0 #> rx rx <fct> 929 0 #> sex sex <dbl> 929 0 #> age Age (years) <S3: labelled> 929 0 #> obstruct obstruct <dbl> 908 21 #> perfor perfor <dbl> 929 0 #> adhere adhere <dbl> 929 0 #> nodes nodes <dbl> 911 18 #> status status <dbl> 929 0 #> differ differ <dbl> 906 23 #> extent extent <dbl> 929 0 #> surg surg <dbl> 912 17 #> node4 node4 <dbl> 929 0 #> time time <dbl> 929 0 #> sex.factor Sex <fct> 929 0 #> rx.factor Treatment <fct> 929 0 #> obstruct.factor Obstruction <fct> 908 21 #> perfor.factor Perforation <fct> 929 0 #> adhere.factor Adherence <fct> 929 0 #> differ.factor Differentiation <fct> 906 23 #> extent.factor Extent of spread <fct> 929 0 #> surg.factor Time from surgery <fct> 912 17 #> node4.factor >4 positive nodes <fct> 929 0 #> status.factor Status <fct> 929 0 #> age.factor Age <fct> 929 0 #> loccomp loccomp <dbl> 909 20 #> loccomp.factor Local complications <fct> 909 20 #> time.years Time (years) <S3: labelled> 929 0 #> mort_5yr Mortality 5 year <fct> 915 14 #> age.10 age.10 <dbl> 929 0 #> mort_5yr.num mort_5yr.num <dbl> 915 14 #> hospital hospital <fct> 929 0 #> missing_percent #> id 0.0 #> rx 0.0 #> sex 0.0 #> age 0.0 #> obstruct 2.3 #> perfor 0.0 #> adhere 0.0 #> nodes 1.9 #> status 0.0 #> differ 2.5 #> extent 0.0 #> surg 1.8 #> node4 0.0 #> time 0.0 #> sex.factor 0.0 #> rx.factor 0.0 #> obstruct.factor 2.3 #> perfor.factor 0.0 #> adhere.factor 0.0 #> differ.factor 2.5 #> extent.factor 0.0 #> surg.factor 1.8 #> node4.factor 0.0 #> status.factor 0.0 #> age.factor 0.0 #> loccomp 2.2 #> loccomp.factor 2.2 #> time.years 0.0 #> mort_5yr 1.5 #> age.10 0.0 #> mort_5yr.num 1.5 #> hospital 0.0