defineIndex {patientProfilesVis} | R Documentation |
Define LaTeX index based on specified variable(s) of the dataset
Description
Define LaTeX index based on specified variable(s) of the dataset
Usage
defineIndex(subjects, data, var, subjectVar = "USUBJID", labelVars = NULL)
Arguments
subjects |
vector with subject IDs (based on the |
data |
data.frame with data containing information on which the index should be based |
var |
variable(s) of |
subjectVar |
String, variable of |
labelVars |
Named character vector with variable labels (names are the variable code) |
Value
list with elements:
'indexMake': string with LaTeX code for creation of index, to be included directly with
cat
in a knitr document (two backslashes)'indexEntry': character vector, named with named with subject ID, containing LaTeX code for index for each subject specified in
subjects
parameter, to be included in a knitr document as text (four backslashes)'indexPrint': string with LaTeX code for printing/inclusion of index, to be included directly with
cat
in a knitr document (two backslashes)
Author(s)
Laure Cougnaud