read_rds: Read survey from rds file

Description Usage Arguments Value See Also Examples

View source: R/read_rds.R

Description

Read survey from rds file

Usage

1
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

1
2
3
4
5
path <-  system.file("examples", "ZA7576.rds", package = "retroharmonize")
read_survey <- read_rds(path)
attr(read_survey, "id")
attr(read_survey, "filename")
attr(read_survey, "doi") 

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