calculate.summary.dt | R Documentation |
Plots a bar plot using ggplot2. Input to this function must be summarised, it will not count for you.
calculate.summary.dt( input.dt, daoh.col.name = "daoh", by.group = NULL, weight.col.name = NULL )
daoh.col.name |
Name of the DAOH column |
by.group |
Name of the stratifying group column, none if NA (e.g., an intervention) (Default: NULL) |
weight.col.name |
Name of a column to weight observations by, for risk-adjustment purposes. If provided, it will be summed instead of the number of instance (Default: NULL) |
input.summary.dt |
A data.table with DAOH summarised by value (and by some other group if desired). |
data.table with totals and proportions per group of DAOH values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.