Convenience wrapper for read_secuTrial_raw
, label_secuTrial
,
factorize_secuTrial
and dates_secuTrial
.
read_secuTrial(data_dir, labels = TRUE, factor = TRUE, dates = TRUE, ...)
string - location of the export
logical - add labels to variables and table
logical - convert categorical variables to factor variables (ignored when reference values are not in a separate table)
logical - convert date variables
options passed to read_secuTrial_raw
. Can be used for passing options to read.table
secuTrialdata
object - a list with one data.frame for each file on the export
and a list containing the export options
export_location <- system.file("extdata", "sT_exports", "lnames",
"s_export_CSV-xls_CTU05_long_ref_miss_en_utf8.zip",
package = "secuTrialR")
# read all export data
sT_export <- read_secuTrial(data_dir = export_location)
#> Read export successfully.
#> The following export options deviate from the suggested specifications:
#> Data from hidden fields is part of the export.
#> Short names was not selected.