Description Usage Arguments Value Examples
Given daily site level data, calculate the number of unique SiteIDs for each epiweek.
1 | calc_n_sites(df, group_vars = NULL, window = 3)
|
df |
This is a dataframe containing daily test utilization data must have columns of "daily_TUR_rp","SiteID", "date", as well as columns to group by |
group_vars |
columns to group by (e.g. region). Unquoted names of columns enclosed in vars(), or NULL |
window |
Width (in weeks) of window over which to count how many sites are present. |
dataframe with SiteID, date, epiweek, epiyear, epidate, n_sites (number of sites that week), and other grouping variables
1 2 3 | # see ?TUR_dat
calc_n_sites(TUR_dat)
calc_n_sites(TUR_dat, group_vars = vars(InstrumentVersion))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.