Produce a data frame to summarise adverse event data.
ae_table.Rd
Takes a data frame of adverse events and produces the number of events and number and percentage of individuals with an adverse event.
Arguments
- df
Data Frame
- ...
Variables to be summarised
- group
Variable that defines the grouping
- ID
Variable that defines the individual identifier (e.g. screening number)
- N
a data frame with the group counts (typically produced using
dplyr::count
)- accuracy
see details of
scales::percent
- total
Logical indicating whether a total column should be created