calculate_percent_change_field: Calculate change in a variable from one year to another

View source: R/calculate_percent_change_field.R

calculate_percent_change_fieldR Documentation

Calculate change in a variable from one year to another

Description

Calculate change in a variable from one year to another

Usage

calculate_percent_change_field(
  con,
  variable_name,
  variable,
  derived_status,
  from_year,
  to_year,
  geography,
  keys,
  params
)

Arguments

con

A database connection

variable_name

Name of the variable to be derived

variable

The ACS variable to calculate change in

derived_status

If TRUE, use MDA derived variable to calculate change

from_year

Base year for comparison

to_year

End year to calculate change against

geography

Geographic level of data

keys

Named list with the structure ‘list(geoid = X, year = ’year')', where X is variable name for the GEOID of the geography

params

List of params

Value

A data frame


ruralinnovation/acsR documentation built on March 23, 2022, 12:09 a.m.