<!-- Generated by pkgdown: do not edit by hand --><htmllang="en-GB"><head><metahttp-equiv="Content-Type" content="text/html; charset=UTF-8"><metacharset="utf-8"><metahttp-equiv="X-UA-Compatible" content="IE=edge"><metaname="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Generate rmarkdown codebook — codebook • codebook</title><scriptsrc="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><metaname="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><linkhref="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><scriptsrc="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><linkhref="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><linkhref="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><scriptsrc="../deps/headroom-0.11.0/headroom.min.js"></script><scriptsrc="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><scriptsrc="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><scriptsrc="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><scriptsrc="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><scriptsrc="../deps/search-1.0.0/fuse.min.js"></script><scriptsrc="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><scriptsrc="../pkgdown.js"></script><metaproperty="og:title" content="Generate rmarkdown codebook — codebook"><metaname="description" content="Pass a data frame to this function to make a codebook for that dataset.
If the dataset has metadata (attributes) set on its variables, these will be
used to make the codebook more informative. Examples are item, value, and
missing labels.
Data frames imported via haven::read_dta(), haven::read_sav(), or from
formr.org will have these attributes in the right format.
By calling this function inside a knitr code chunk, the
codebook will become part of the document you are generating."><metaproperty="og:description" content="Pass a data frame to this function to make a codebook for that dataset.
If the dataset has metadata (attributes) set on its variables, these will be
used to make the codebook more informative. Examples are item, value, and
missing labels.
Data frames imported via haven::read_dta(), haven::read_sav(), or from
formr.org will have these attributes in the right format.
By calling this function inside a knitr code chunk, the
codebook will become part of the document you are generating."><metaname="twitter:card" content="summary"><metaname="twitter:creator" content="@rubenarslan"><metaname="twitter:site" content="@rubenarslan"></head><body>
<ahref="#main" class="visually-hidden-focusable">Skip to contents</a>
<ulclass="dropdown-menu" aria-labelledby="dropdown-articles"><li><aclass="dropdown-item" href="../articles/codebook_qualtrics.html">Codebook example with Qualtrics dataset</a></li>
<li><aclass="dropdown-item" href="../articles/codebook_sav.html">Codebook example with SPSS dataset</a></li>
<p>Pass a data frame to this function to make a codebook for that dataset.
If the dataset has metadata (attributes) set on its variables, these will be
used to make the codebook more informative. Examples are item, value, and
missing labels.
Data frames imported via <code><ahref="https://haven.tidyverse.org/reference/read_dta.html" class="external-link">haven::read_dta()</a></code>, <code><ahref="https://haven.tidyverse.org/reference/read_spss.html" class="external-link">haven::read_sav()</a></code>, or from
<ahref="https://formr.org" class="external-link">formr.org</a> will have these attributes in the right format.
By calling this function inside a knitr code chunk, the
codebook will become part of the document you are generating.</p>
<dd><p>a named list with one entry per scale and one or several printable reliability computations for this scale. if NULL, computed on-the-fly using compute_reliabilities</p></dd>
<dd><p>defaults to "auto" which is to try to determine the level of repetition from the "session" and "created" variables. Other values are: single, repeated_once, repeated_many</p></dd>
<dd><p>whether to print a missingness report. Turn off if this gets too complicated and you need a custom solution (e.g. in case of random missings).</p></dd>
<dd><p>a character vector of variable names to exclude from the detailed graphical display. These variables will still appear in the metadata table and JSON-LD metadata, but no distribution plots or summary statistics will be generated for them.</p></dd>
<divclass="sourceCode"><preclass="sourceCode r"><code><spanclass="r-in"><span><spanclass="co"># will generate figures in a temporary directory</span></span></span>