Define LaTeX index based on specified variable(s) of the dataset
defineIndex(subjects, data, var, subjectVar = "USUBJID", labelVars = NULL)
list with elements:
'indexDef': string with LaTeX code for creation of index,
to be included directly with cat
in a knitr document
(two backslashes)
'indexInfo': character vector, named with named with subject ID,
containing LaTeX code for index for each subject
specified in subjects
parameter, to be passed to the
knit
function 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)
vector with subject IDs (based on the subjectVar
variable)
data.frame with data containing information on which the index should be based
variable(s) of data
of interest for the index
String, variable of data
with subject ID
Named character vector with variable labels (names are the variable code)
Laure Cougnaud