read_surveys | R Documentation |
Import surveys into a list or several .rds
files.
read_surveys(survey_paths, .f = NULL, export_path = NULL)
read_survey(file_path, .f = NULL, export_path = NULL)
survey_paths |
A vector of (full) file paths that contain the surveys to import. |
.f |
A function to import the surveys with.
Defaults to |
export_path |
Defaults to |
Use read_survey
for a single survey and read_surveys
for several surveys in
in a loop. The function handle exceptions with wrong file names and not readable
files. If a file cannot be read, a message is printed, and empty survey is added to the
the list in the place of this file.
A list of the surveys or a vector of the saved file names.
Each element of the list is a data
frame-like survey
type object where some metadata,
such as the original file name, doi identifier if present, and other
information is recorded for a reproducible workflow.
survey
Other import functions:
pull_survey()
,
read_csv()
,
read_dta()
,
read_rds()
,
read_spss()
file1 <- system.file(
"examples", "ZA7576.rds", package = "retroharmonize")
file2 <- system.file(
"examples", "ZA5913.rds", package = "retroharmonize")
read_surveys (c(file1,file2), .f = 'read_rds' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.