Skip to contents

Create a table showing the counts of study participants who reached each point in the study workflow

Usage

create_table(participant_level_progress, children, pretty_labels)

Arguments

participant_level_progress

A detail dataframe describing the progress of each research participant

children

A vector enumerating the child categorical level below the corresponding parent

pretty_labels

A dataframe defining the pretty labels for each step and each factor level

Value

a gtsummary::tbl_summary() object that describes participant_level_progress using the labels in pretty_labels

Examples

if (FALSE) { # \dontrun{
gtsummary_table <- create_table(participant_level_progress, pretty_labels)
} # }