aggregate_sample | R Documentation |
Aggregate by area, year, age and type (weighted by population), and convert to a percentage/probability.
aggregate_sample(
.data,
aggr_cols = c("area_id", "area_name", "year", "age", "age_group", "model", "type"),
num_cols,
ages = 0:60,
...
)
.data |
|
aggr_cols |
Columns to aggregate samples by, Default: c("area_id", "area_name", "year", "age", "age_group", "model", "type") |
num_cols |
|
... |
Further arguments passed to |
data.frame
with samples aggregated by aggr_cols
and
weighted by population.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.