Read survey from rds file

read_rds(file, id = NULL, filename = NULL, doi = NULL)

Arguments

file

A re-saved survey, imported with haven::read_spss

id

An identifier of the tibble, if omitted, defaults to the file name.

filename

An import file name.

doi

An optional document object identifier.

Value

A tibble, data frame variant with survey attributes.

See also

Other import functions: pull_survey(), read_spss(), read_surveys(), subset_save_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"