extract_employment: Extract employment statistics from scenario

View source: R/employment.R

extract_employmentR Documentation

Extract employment statistics from scenario

Description

This is an internal function to pull the employment data from a scenario and return it to either the single scenario or scenario comparison functions.

Usage

extract_employment(
  db,
  facet_var = NULL,
  facet_levels = NULL,
  type_levels = NULL,
  employment_categories = NULL,
  index_year = 2000
)

Arguments

db

The scenario database.

facet_var

The variable in the zone table to facet by. Defaults to MPO

facet_levels

The levels of the facet variable to keep. Defaults to all levels other than external stations.

type_levels

The types of employment to show in the plot.

employment_categories

[Optional] data_frame of employment aggregation categories;

index_year

[Optional] index year that should be used as the starting year for data or plots; if NULL, uses emp_types. Should have columns ACTIVITY (full code of activity in AA databases) and emp_type.


pbsag/swimr documentation built on July 4, 2025, 12:10 p.m.