as_conmat_population: Convert to conmat population

View source: R/conmat-population.R

as_conmat_populationR Documentation

Convert to conmat population

Description

Convert to conmat population

Usage

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, ...)

Arguments

data

data.frame

...

extra arguments

age

age column - an unquoted variable of numeric integer ages

population

population column - an unquoted variable, numeric value

Examples

some_age_pop <- data.frame(
  age = 1:10,
  pop = 101:110
)

some_age_pop

as_conmat_population(
  some_age_pop,
  age = age,
  population = pop
)

njtierney/conmat documentation built on April 17, 2025, 10:27 p.m.