ls_parse_data_import_script {limonaid}R Documentation

Extract specific code bits from LimeSurvey data import R script

Description

This function extracts specific code bits from the LimeSurvey data import R script, which can then be applied to imported data using ls_apply_script_bits(), for example to update variable names, set labels, etc.

Usage

ls_parse_data_import_script(
  scriptfile = NULL,
  scriptEncoding = limonaid::opts$get("encoding"),
  silent = limonaid::opts$get("silent")
)

Arguments

scriptfile

The path and filename of the script file.

scriptEncoding

The encoding of the script file; can be used to override the setting in the limonaid options (i.e. in opts) in the encoding field (the default value is "UTF-8").

silent

Whether to be silent or verbose ('chatty').

Value

A list with four components.


[Package limonaid version 0.1.5 Index]