An overview table of missingness patterns generated using md_pattern()
.
codebook_missingness(results, indent = "##")
results | a data frame |
---|---|
indent | add # to this to make the headings in the components lower-level. defaults to beginning at h2 |
#> #> #> #> #> ### Missingness report #> #> Among those who finished the survey. Only variables that have missing values are shown. #> #> #> ```r #> if (!exists("ended", results) || #> !exists("expired", results)) { #> warning("Could not figure out who finished the surveys, because the ", #> "variables expired and ended were missing.") #> } #> if (length(md_pattern)) { #> if (knitr::is_html_output()) { #> rmarkdown::paged_table(md_pattern, options = list(rows.print = 10)) #> } else { #> knitr::kable(md_pattern) #> } #> } #> ``` #> #> #> #> |description | expired| var_miss| n_miss| #> |:-----------------------------|-------:|--------:|------:| #> |Missing values in 1 variables | 0| 1| 28| #> |Missing values per variable | 28| 28| 28|