Skip to contents

Reading databases

read_trialmaster()
Read the .zip archive of a TrialMaster export
read_tm_all_xpt()
Read all .xpt files in a directory

Checking databases

edc_data_warn() edc_data_stop()
Standardized warning system
assert_no_duplicate()
Assert that a dataframe has one row per patient
assert_no_rows()
Assert that a dataframe has no rows
assert_no_missing_patient()
Check the completion of the subject ID column

Searching databases

find_keyword()
Find a keyword in the whole database
lastnews_table()
Get a table with the latest date for each patient
get_common_cols() summary(<common_cols>)
Get columns that are common to multiple datasets

Clinical Utils

ae_table_grade_max()
Summary tables for AE by grade max
ae_table_grade_n()
Summary tables for AE
ae_table_soc() as_flextable(<ae_table_soc>)
Summary tables for AE by SOC
ae_plot_grade_max()
Graphic representation of AEs by grade max
ae_plot_grade_n()
Graphic representation of AEs
ae_plot_soc()
Graphic representation of AEs by soc (Butterfly plot)
waterfall_plot()
Generate a waterfall plot

Options

edc_options()
Set global options for EDCimport
edc_peek_options()
See which EDCimport option is currently set.
edc_reset_options()
Reset all EDCimport options.

Graphics

edc_swimmerplot()
Swimmer plot of all dates columns

Helpers

unify()
Unify a vector
fct_yesno() get_yesno_lvl()
Format factor levels as Yes/No
table_format()
Identify if a dataframe has a long or a wide format
save_plotly()
Save a plotly to an HTML file
get_datasets()
Retrieve the datasets as a list of data.frames
get_meta_cols()
Get columns shared by most datasets
get_subjid_cols() get_crfname_cols()
Get key column names
get_key_cols()
Important column names
split_mixed_datasets()
Split mixed datasets

Lookup Utils

get_lookup()
Retrieve the lookup table from options
extend_lookup()
Extend the lookup table
build_lookup()
Generate a lookup table

List Utils

load_list()
Load a list in an environment
load_as_list()
Load a .RData file as a list
save_list()
Save a list as .RData file

Examples

Manual correction