View source: R/add_populations.R
add_std_pop | R Documentation |
Returns the US 2000 population by default, by any population from the narcan::std_pop$std_cat column is valid.
add_std_pop(df, std_cat = "s204", by_vars = "age")
df |
dataframe with age column (in 5-year bins) |
std_cat |
standard population to use (default: US 2000 standard pop) |
by_vars |
variables to merge on |
dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.