load_survey: Load a survey from local files

View source: R/load_survey.r

load_surveyR Documentation

Load a survey from local files

Description

Loads a survey from a local file system. Tables are expected as csv files, and a reference (if present) as JSON.

Usage

load_survey(files, ...)

Arguments

files

a vector of file names as returned by download_survey()

...

options for clean(), which is called at the end of this

Value

a survey in the correct format

Examples

## Not run: 
  list_surveys()
  peru_files <- download_survey("https://doi.org/10.5281/zenodo.1095664")
  peru_survey <- load_survey(peru_files)

## End(Not run)

socialmixr documentation built on Oct. 29, 2022, 1:09 a.m.