Skip to contents

Read Survey Data from Datalake

Usage

step_srv_read(
  srv_type = c("main", "final", "cleaned", "raw", "demo", "weights", "crunch", "source"),
  wave = NA_character_,
  project = g6tr.dl::dl_get_project()
)

Arguments

srv_type

Type of survey data to read. One of "main", "final", "cleaned", "raw", "demo", "weights" or "crunch". "final" is main survey data plus the research-manager additions (segments, MD utilities, etc.), in the same shape as "main". This will read data from data/srv_{srv_type} in the datalake under specified project! Defaults to "main".

wave

Optional wave name to read from. Defaults to NA, which means no wave.

project

Project name in the datalake. If NULL, will attempt to read from DESCRIPTION file.

Value

A survey tibble.

Examples

if (FALSE) { # \dontrun{
srv_main <- step_srv_read("main", project = "example")
} # }