Description Usage Arguments Functions See Also Examples
These functions act as wrapper functions to create ConstructFlexTable objects.
1 2 3 4 5 | FT_ToxTable_summary(rt, tble = NULL)
FT_ToxTable_cycle(rt, cycles = "all", tble = NULL)
FT_ToxTable_category(rt, cycles = "all", tble = NULL)
|
rt |
robustToxicity object. |
tble |
Optionally pass a pre computed table into the wrapper instead of computing it here. Note if columns don't match what is expected this is likely to fail. May be usefull for dropping some rows, or saving time rerunning the table generator function for large data sets. This functions return the ConstructFlexTable object from the prettyTables package. To create the FlexTable you can call object$GetTable() on the returned object. This can then be added to a word document using |
cycles |
The cycle column names, or index in rt@periodDividerCols of the cycles to tabulate. May also be "all" to use all cycles |
FT_ToxTable_summary
: A wrapper for ToxTable_cycle
FT_ToxTable_cycle
: A wrapper for ToxTable_cycle
FT_ToxTable_category
: A wrapper for ToxTable_category
ToxTable_summary
, ToxTable_cycle
, ToxTable_category
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | # Patient Level Data
data("rt_patientData")
# Toxicity Level Data
data("rt_toxicityData")
# Run the setup command passing in all the column names.
rt = SetupRobustToxicities(
toxData = rt_toxicityData,
patientData = rt_patientData,
patidCol = "patientNo", treatmentCol = "Treatment",
toxCategoryCol = "category", toxNameCol = "toxicity",
toxGradeCol = "grade", dateOfStartOfToxWindow = "Registration_date",
dateOfStartTox = "ae_onset_date", dateOfEndTox = "ae_resolve_date",
dateOfEndOfToxWindow = "end_of_assessment_date",
periodDividerCols = c("Registration_date", "Cycle_1_date","Cycle_2_date",
"Cycle_3_date", "Cycle_4_date", "Cycle_5_date", "Cycle_6_date"),
periodDividerLabels = c("Pre treatment", "Cycle 1","Cycle 2",
"Cycle 3","Cycle 4","Cycle 5", "Cycle 6"),
treatmentCodes = NULL, treatmentLabels = NULL, options = NULL)
# Look for queries. Note: must be called before running any
# of the functions on this class.
rt = QueryRobustToxicities(rt)
##########################################################
# flexTable summary
ft = FT_ToxTable_summary(rt)
# returns an object of class ConstructFlexTable for additional formatting and editing
ft$GetTable()
##########################################################
# flexTable worst grade of each adverse event by patient
ft = FT_ToxTable_cycle(rt)
# returns an object of class ConstructFlexTable for additional formatting and editing
ft$GetTable()
##########################################################
# flexTable worst grade of each category by patient
ft = FT_ToxTable_category(rt)
# returns an object of class ConstructFlexTable for additional formatting and editing
ft$GetTable()
##########################################################
# The table generated by ToxTable_summary, ToxTable_cycle or ToxTable_category may also
# be passed as an argument. This provides a convinent oportunity to edit the data
tble = ToxTable_summary(rt)
# Edits to tble can go here
ft = FT_ToxTable_summary(rt, tble = tble)
# returns an object of class ConstructFlexTable for additional formatting and editing
ft$GetTable()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.