View source: R/document_surveys.R
document_surveys | R Documentation |
Document the key attributes surveys in a survey list.
document_surveys(survey_list = NULL, survey_paths = NULL, .f = NULL)
document_waves(waves)
survey_list |
A list of |
survey_paths |
A vector of full file paths to the surveys to subset, defaults to
|
.f |
A function to import the surveys with.
Defaults to |
waves |
A list of |
The function has two alternative input parameters. If survey_list
is the
input, it returns the name of the original source data file, the number of rows and
columns, and the size of the object as stored in memory. In case survey_paths
contains the source data files, it will sequentially read those files, and add the file
size, the last access and the last modified time attributes.
The earlier form document_waves
is deprecated.
Currently called document_surveys
.
Returns a data frame with the key attributes of the surveys in a survey list: the name of the data file, the number of rows and columns, and the size of the object as stored in memory.
Other documentation functions:
document_survey_item()
examples_dir <- system.file( "examples", package = "retroharmonize")
my_rds_files <- dir( examples_dir)[grepl(".rds",
dir(examples_dir))]
example_surveys <- read_surveys(file.path(examples_dir, my_rds_files))
documented <- document_surveys(example_surveys)
attr(documented, "original_list")
documented
document_surveys(survey_paths = file.path(examples_dir, my_rds_files))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.