sortSubjects: Sort subjects based on a specified dataset/variable.

View source: R/report_createSubjectProfileReport.R

sortSubjectsR Documentation

Sort subjects based on a specified dataset/variable.

Description

Sort subjects based on a specified dataset/variable.

Usage

sortSubjects(
  subjects,
  subjectVar = "USUBJID",
  subjectSortData = NULL,
  subjectSortVar = NULL,
  subjectSortDecreasing = FALSE,
  verbose = FALSE
)

Arguments

subjects

Character vector with subjects of interest

subjectVar

String, variable of data with subject ID

subjectSortData

Data.frame with data containing information on how the subjects should be sorted.

subjectSortVar

Variable(s) of subjectSortData used to order the subjects

subjectSortDecreasing

Logical, if TRUE (FALSE by default) subjects are sorted based on inverse order of subjectSortVar.

verbose

logical, if TRUE print messages during execution

Value

Updated subjects

Author(s)

Laure Cougnaud


patientProfilesVis documentation built on Nov. 18, 2022, 5:12 p.m.