get_surveys: Get Survey Datasets for DCPO

View source: R/get_surveys.R

get_surveysR Documentation

Get Survey Datasets for DCPO

Description

get_surveys downloads the survey datasets to be used to estimate public opinion across countries and over time

Usage

get_surveys(vars, datapath = "../data/dcpo_surveys", chime = TRUE)

Arguments

vars

a data frame (or, optionally, a vector of survey names or a .csv file) of survey items

datapath

path to the directory that will house the raw survey datasets

chime

play chime when complete?

Details

get_surveys, when passed a data frame of survey items, downloads the source survey datasets, converts them to .RData format, and saves them to a specified directory for later use by dcpo_setup. When constructing a list of surveys, one should be sure to use the name employed in DCPO's built-in surveys_data database: View(surveys_data).

Value

the function downloads datasets


fsolt/DCPOtools documentation built on June 9, 2025, 4:10 p.m.