Write_Surveys_to_Files_XLSX: Write Limesurvey Surveys to XLSX Files <Automated Workflow>

View source: R/backups.R

Write_Surveys_to_Files_XLSXR Documentation

Write Limesurvey Surveys to XLSX Files <Automated Workflow>

Description

Writes a list of surveys to xlsx backup files, using the limesurvey IDs and panel providers as names

Usage

Write_Surveys_to_Files_XLSX(
  Survey_List,
  Top_Folder = "Backups",
  Sub_Folder = NA,
  Use_Date_Sub_Folder = TRUE,
  Use_Date_File = FALSE
)

Arguments

Survey_List

this is a list containing only the downloaded data from the survey for a multiple-part survey

Top_Folder

string specifying where it should be saved. If the folder doesn't exist yet, it will be created. The default is a "Backups" folder

Sub_Folder

Default value is NA- which creates no subfolders. Just a string with the name of the subfolders, where the individual files will be saved. This could allow saving organized by panel provider, i.e. "Cint"

Use_Date_Sub_Folder

Default value is TRUE, which means that the Sub_Folder is created with a date and time prefix. FALSE inhibits this behavior, and will create a folder where the contents can be overwritten. TRUE is useful for backup purposes, FALSE when one folder should be updated with the most current information on a regular basis because it is referenced by another application

Use_Date_File

Default value is FALSE, which means that the files do not have the date and time as a prefix to their names

Examples

Write_Surveys_to_Files_XLSX(Cint_Surveys_0, c(112030:112039), "Cint")

bpresentati/surveyR documentation built on March 19, 2022, 3:40 a.m.