norway_population_by_age_cats: norway_population_by_age_cats

norway_population_by_age_catsR Documentation

norway_population_by_age_cats

Description

A function that easily categorizes the populations for you

Usage

norway_population_by_age_cats(
  cats = NULL,
  border = fhidata::config$border,
  use_current_year_as_1900_pop = fhidata::config$use_current_year_as_1900_pop
)

Arguments

cats

A list containing vectors that you want to categorize

border

The border year

use_current_year_as_1900_pop

Replaces the year 1900's population data with the current year's population data

Examples

norway_population_by_age_cats(cats = list(c(1:10), c(11:20)))
norway_population_by_age_cats(cats = list("one to ten" = c(1:10), "eleven to twenty" = c(11:20)))
norway_population_by_age_cats(cats = list(c(1:10), c(11:20), "21+"=c(21:200)))

folkehelseinstituttet/fhidata documentation built on June 3, 2022, 2:49 p.m.