View source: R/variable_label.R
simple_codebook | R Documentation |
Generate a simple codebook in CSV-format from a (labelled) data.frame
.
simple_codebook(x, ...)
x |
data.frame. Data to be documented. |
... |
Arguments passed on to
|
If the skimr package is installed, an in-line histogram is added for all numeric variables. If columns are labelled, the labelles are included in the codebook.
Returns NULL
invisibly.
utils::write.csv()
variable_labels(cars) <- c(speed = "Speed [ft/s]", dist = "Distance traveled [m]")
simple_codebook(cars, file = file.path(tempdir(), "cars_codebook.csv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.