create_impact_table_single: 'create_impact_table_single'

Description Usage Arguments Value

View source: R/create_impact_table_single.R

Description

'create_impact_table_single()' takes output from 'link_all_units()' and creates a table of spatial impacts

Usage

1
2
3
create_impact_table_single(data.linked, data.units, link.to = "zips",
  zcta.dataset = NULL, counties. = NULL, map.month, map.unitID,
  metric = "N")

Arguments

data.linked

data for plotting as output from disperseR::link_all_units()

data.units

information on unit locations as output from disperseR::units()

link.to

spatial scale for plotting. One of 'zips', 'counties', or 'grids' that should match original input to disperseR::link_all_units()

zcta.dataset

ZIP code/ZCTA sptial dataset as imported by disperseR::get_data() or subset thereof

counties.

US counties dataset as imported using USAboundaries::us_counties( ) or subset thereof

map.month

specific month to map in form YYYYMM if time.agg = 'month'. Can be created using disperseR::get_yearmon()

map.unitID

specific unit to map as string. Must match 'ID' column in data.units.

metric

plotting metric in ‘data.linked' input. Defaults to ’hyads', the default output of disperseR::calculate_exposure().

Value

An sf data.table of impacts for a single unit and month suitable for plotting


lhenneman/disperseR documentation built on Nov. 14, 2021, 6:24 p.m.