visit_structure {secuTrialR}R Documentation

Get the visit structure of secuTrialdata objects

Description

Get the visit structure of secuTrialdata objects

Usage

visit_structure(x, sorted = TRUE)

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

Arguments

x

a secuTrialdata object

sorted

logical if TRUE sorted by first visit

...

further parameters

Value

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

plot of the visit plan

Note

Requires a fixed visit structure - an error will be returned for projects without a visit structure or one with flexible visits

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

[Package secuTrialR version 1.1.1 Index]