Man pages for LisaHopcroft/CTutils
Helpful Functions for Clinical Trial Data Analysis at SCTRU (Public Health Scotland)

add_dependency_to_fieldsAdd an additional dependency to certain columns
all_files_existDo all the files listed actually exist?
calculate_BMIGiven weight and height, returns BMI
calculate_dose_modificationModify dose according to protocol schedule
calculate_missing_dataCAlculate how much data is missing for each patient, visit...
calculate_modeFind the mode in a list of values (i.e., the most common...
calculate_number_of_instancesCalculate number of instances
calculate_RECIST_responseCalculates whether data indicates a complete response by...
check_all_files_existCheck whether all files in a list exist
check_extract_dateCheck whether the date recorded for the extract matches the...
convert_dates_to_EudraCT_age_categoriesGiven Date of Birth and Date of Registration, annotate the...
create_dummy_datasetCreate dummy CT data
create_SSR_structureCreate a new SSR directory
create_testresult_stringReturn possible test results (repeated symbols)
CTutilsprojectCTutilsproject
doUtility/wrapper function to DO the default things
do_countTabulate Yes/No entries in one or more columns.
do_count_comparisonTabulate two separate Yes/No counts and merge together.
do_list_comparisonTabulate two separate list occurence counts and merge...
do_list_extractionCount the occurence of items in a list
do_summarySummarise numerical data into a table and boxplot
example_trial.dataExample Trial Data
example_trial.glossaryGlossary for example Trial Data
example_trial.vocabularyVocabulary for example Trial Data
expand_dependency_locations_in_glossaryExpand dependency locations in glossary
expand_glossaryExpand glossary
expand_trial_dataExpand trial data (internal)
extract_complex_dependenciesExtract complex dependencies.
extract_simple_dependencies#' Extract simple dependencies.
find_modeFind the mode in the list of values (i.e., the most frequent...
fit_flextable_to_pageFit flextable object to the width of the page
generate_visit_labelGenerate a label for each visit for display purposes
get_random_datesGenerate a random sample of dates in a given range
initialise_RECIST_VALUESInitialise RECIST values as global variables
parse_MACRO_DSD_fileParse information from DSD (MACRO) document
parse_MACRO_DSD_file_for_glossary_and_dependenciesParse information from DSD (MACRO) document
plot_attendance_dataCAlculate how much data is missing for each patient, visit...
plot_missing_dataCalculate how much data is missing for each patient, visit...
plot_missing_data_detailedPlot the missing data, for specified test batteries and...
print_data_queries_messagePrint data queries summary message.
print_errorPrint an error message
print_file_loading_infoPrint information about which files were loaded.
print_flextablePrint the labetests data
print_labtests_flextablePrint the labetests data
print_M0M1_flextablePrint the M0/M1 data
print_messagePrint a message
print_signsandsyptoms_flextablePrint the signs and symptoms data
print_warningPrint a warning message
read_EudraCT_vocabularyProvide necessary EudraCT and RMS vocabulary for use when...
read_report_YAMLRead in values from YAML and load them into the global...
RECIST_COMPLETERECIST_COMPLETE
RECIST_PARTIALRECIST_PARTIAL
RECIST_PARTIAL_calculationRECIST_PARTIAL calculation
RECIST_PROGRESSIVERECIST_PROGRESSIVE
RECIST_PROGRESSIVEabs_calculationRECIST PROGRESSIVE absolute increase calculation
RECIST_PROGRESSIVEperc_calculationRECIST PROGRESSIVE percentage increase calculation
record_data_queryRecord a data query
refactor_variableChange the levels of a factor to use an explicit list
rejig_panel_dimensionsRejig panel dimensions
rejig_panel_widthsRejig panel widths
replace_funcReplace NAs with another value
replace_infinite_numbersReplace infinite numbers with NA
replace_missing_numberReplace missing numeric value with another number.
replace_missing_stringReplace missing values with another string.
resolve_individual_filter_statementResolves a dependency, so that it can be used as a filter...
save_imageSave CT data to file.
subchunkifyPrint a figure at a different width/height than the chunk it...
test_fnPrint a name
tidy_logical_expressionTidy/reformat a dependency
LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.