pull_survey: Pull a survey from a survey list

Description Usage Arguments Value See Also Examples

View source: R/pull_survey.R

Description

Pull a survey by survey code or id.

Usage

1
pull_survey(survey_list, id = NULL, filename = NULL)

Arguments

survey_list

A list of surveys

id

The id of the requested survey. If NULL use filename

filename

The filename of the requested survey.

Value

A single survey identified by id or filename.

See Also

Other import functions: read_rds(), read_spss(), read_surveys(), subset_save_surveys()

Examples

1
2
3
4
5
6
7
8
9
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) )

pull_survey(example_surveys, id = "ZA5913")

antaldaniel/retroharmonize documentation built on Aug. 15, 2020, 10:13 a.m.