create_codebook | R Documentation |
Create a codebook from one or more survey data files.
create_codebook(metadata = NULL, survey = NULL)
codebook_waves_create(waves)
codebook_surveys_create(survey_list)
metadata |
A metadata table created by |
survey |
A survey data frame, defaults to |
waves |
A list of surveys. |
survey_list |
A list containing surveys of class survey. |
For a list of survey waves, use codebook_waves_create
.
The returned codebook contains only labelled variables, i.e., numeric and
character types are not included, because they do not require coding.
A codebook for the survey as a data frame, including the metadata, and all found SPSS-type valid or missing labels.
Other metadata functions:
crosswalk_table_create()
,
metadata_create()
,
metadata_survey_create()
Other metadata functions:
crosswalk_table_create()
,
metadata_create()
,
metadata_survey_create()
create_codebook (
survey = read_rds (
system.file("examples", "ZA7576.rds",
package = "retroharmonize")
)
)
examples_dir <- system.file("examples", package = "retroharmonize")
survey_list <- dir(examples_dir)[grepl("\\.rds", dir(examples_dir))]
example_surveys <- read_surveys(
file.path( examples_dir, survey_list),
save_to_rds = FALSE)
codebook_surveys_create (example_surveys)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.