Learn R Programming

secuTrialR (version 1.1.1)

visit_structure: Get the visit structure of secuTrialdata objects

Description

Get the visit structure of secuTrialdata objects

Usage

visit_structure(x, sorted = TRUE)

# S3 method for secuTrialvisit plot(x, ...)

Value

data.frame with 1 for whether a form (rows) was collected during a particular visit (columns)

plot of the visit plan

Arguments

x

a secuTrialdata object

sorted

logical if TRUE sorted by first visit

...

further parameters

Examples

Run this code
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)
# get visit structure
vs <- visit_structure(sT_export)
# plot
plot(vs)

Run the code above in your browser using DataLab