read_secuTrial {secuTrialR}R Documentation

Read secuTrial export

Description

Convenience wrapper for read_secuTrial_raw, label_secuTrial, factorize_secuTrial and dates_secuTrial.

Usage

read_secuTrial(data_dir, labels = TRUE, factor = TRUE, dates = TRUE, ...)

Arguments

data_dir

string - location of the export

labels

logical - add labels to variables and table

factor

logical - convert categorical variables to factor variables (ignored when reference values are not in a separate table)

dates

logical - convert date variables

...

options passed to read_secuTrial_raw. Can be used for passing options to read.table

Value

secuTrialdata object - a list with one data.frame for each file on the export and a list containing the export options

Examples

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)


[Package secuTrialR version 1.3.3 Index]