Description Usage Arguments Details Value
e.g. Run on the output of a call to prev_terms
1 2 | prev_totals(dat, included_totals = c("year", .ehr$practice_id),
time_var = "year", person_years = 100)
|
dat |
a dataframe |
included_totals |
character vector describing which aggregates should be included e.g. c("year", "practid") |
time_var |
name of the variable determining timepoints |
person_years |
numeric multiplier for presentation of prevalence and incidence numbers |
Outputs totals by aggregated by a time variable and other variables Updated to use dplyr to do the aggregation - Now 40x faster!
list of aggregates and/or the original data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.