View source: R/aggregate_period.R
| count_duplicate_periods | R Documentation |
Used to tell the user what collapse_to_period() would do, before doing
it. With group_col supplied, rows only count as duplicates if they
share both a period and a group – two different districts on the same
date are not a collision.
count_duplicate_periods(df, date_agg = "day", group_col = NULL)
df |
A data frame with a |
date_agg |
Aggregation frequency: one of |
group_col |
Optional character scalar, a grouping column. |
A single integer: how many rows would be removed by collapsing
(0 if none).
df <- data.frame(ds = as.Date(c("2024-01-01", "2024-01-02")), y = c(3, 5))
count_duplicate_periods(df, date_agg = "month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.