Description Usage Arguments Examples
Renders a tabular codebook including attributes and data summaries. The table
is generated using DT::datatable()
and can be exported to CSV, Excel, etc.
1 | codebook_items(results, indent = "##")
|
results |
a data frame, ideally with attributes set on variables |
indent |
add # to this to make the headings in the components lower-level. defaults to beginning at h2 |
1 2 3 4 5 6 | data("bfi")
## Not run:
# doesn't show interactively, because a html widget needs to be registered
codebook_items(bfi)
## End(Not run)
|
dev.new(): using pdf(file="Rplots1.pdf")
No viewer found, probably documenting or testing
### Codebook table
## PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
## Warning in normalizePath(f2): path[1]="webshot10ed882ee05a82.pdf": No such file
## or directory
## Warning in file(con, "rb"): cannot open file 'webshot10ed882ee05a82.pdf': No
## such file or directory
## Error in file(con, "rb"): cannot open the connection
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.