Import a survey from an rds file.
Arguments
- file
A path to a file to import.
- id
An identifier of the tibble, if omitted, defaults to the file name without its extension.
- doi
An optional document object identifier.
See also
Other import functions:
pull_survey()
,
read_csv()
,
read_dta()
,
read_spss()
,
read_surveys()
Examples
path <- system.file("examples", "ZA7576.rds", package = "retroharmonize")
read_survey <- read_rds(path)
attr(read_survey, "id")
#> [1] "ZA7576"
attr(read_survey, "filename")
#> [1] "ZA7576.rds"
attr(read_survey, "doi")
#> [1] "doi:10.4232/1.13393"