susor_append_versions: Appends all versions of a questionnaire and saves appended...

susor_append_versionsR Documentation

Appends all versions of a questionnaire and saves appended data in susor_dir_raw

Description

First define susor_dir_downloads and susor_dir_raw in susor_login() for susor_append_versions() to work. Pass the questionnaire variable (susor_qn_variable) to susor_append_versions() to append all the versions of that questionnaire and save the appended data in susor_dir_raw.

Usage

susor_append_versions(
  susor_qn_variable,
  susor_format = "STATA",
  get_diagostics = T
)

Arguments

susor_qn_variable

A string. The variable name of questionnaire which versions are to be appended

susor_format

A string. Format of the downloaded data c("STATA", "Tabular"). Default = "STATA"

get_diagnostics

A boolean. If True, the appended version will include the variables from the interview__diagnostics file and the last action reported in interview__actions

Value

A directory with the appended file(s) with all the versions of susor_qn_variable saved in susor_dir_raw. do not return if file is empty


araupontones/susor documentation built on May 12, 2022, 1:31 p.m.