View source: R/conmat-population.R
as_conmat_population | R Documentation |
Convert to conmat population
as_conmat_population(data, ...)
## Default S3 method:
as_conmat_population(data, ...)
## S3 method for class 'data.frame'
as_conmat_population(data, age, population, ...)
## S3 method for class 'list'
as_conmat_population(data, age, population, ...)
## S3 method for class 'grouped_df'
as_conmat_population(data, age, population, ...)
data |
data.frame |
... |
extra arguments |
age |
age column - an unquoted variable of numeric integer ages |
population |
population column - an unquoted variable, numeric value |
some_age_pop <- data.frame(
age = 1:10,
pop = 101:110
)
some_age_pop
as_conmat_population(
some_age_pop,
age = age,
population = pop
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.