awr_aggregate | R Documentation |
Aggregate antibiotic usage data by AWaRe group
awr_aggregate(
df,
atc = atc,
ddd = ddd,
...,
tall = FALSE,
method = getOption("abxaware.method", "dk"),
ignore.other = FALSE,
silent = FALSE
)
df |
Data frame. |
atc |
ATC code. |
ddd |
Amount (usually Defined Daily Doses). |
... |
Grouping variables. |
tall |
If TRUE (default) outputs data in tall format. |
method |
'dk' (default), uk or 'who' indicating the AWaRe classification
to be used. The default may be changed within an R session using
|
ignore.other |
If TRUE, ignores drugs that have no AWaRe class. |
silent |
If TRUE, prints method. |
A data frame.
awr_aggregate(abx_sales)
awr_aggregate(abx_sales, atc, ddd)
awr_aggregate(abx_sales, atc, ddd, region)
awr_aggregate(abx_sales, atc, ddd, region, tall = TRUE)
awr_aggregate(abx_sales, atc, ddd, month)
awr_aggregate(abx_sales, atc, ddd, month, region)
awr_aggregate(abx_sales, atc, ddd, month, region, hospital)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.