Sort subjects based on a specified dataset/variable.
sortSubjects(
subjects,
subjectVar = "USUBJID",
subjectSortData = NULL,
subjectSortVar = NULL,
subjectSortDecreasing = FALSE,
verbose = FALSE
)
Updated subjects
Character vector with subjects of interest
String, variable of data
with subject ID
Data.frame with data containing information on how the subjects should be sorted.
Variable(s) of subjectSortData
used to order the subjects
Logical, if TRUE (FALSE by default)
subjects are sorted based on inverse order of subjectSortVar
.
logical, if TRUE print messages during execution
Laure Cougnaud