idw_bg_avg: idw_bg_avg

Description Usage Arguments Examples

View source: R/idw_bg_avg.R View source: R/Archive/idw_bg_avg.R

Description

Find the IDW spatial block group average for the given receptors using inverse distance weighting

Usage

1
2
3
4
5
6
7
8
idw_bg_avg(
  data = df,
  value = "cancer_risk",
  lat = "Lat",
  long = "Long",
  bg_id = NULL,
  metro = FALSE
)

Arguments

data

Data frame with lat / long coordinates and values for averaging.

Examples

1
2
3
4
5
6
# For all block groups
bg_avg <- idw_bg_avg(data   = df, 
                     value  = cancer_risk,
                     lat    = lat, 
                     long   = long,
                     bg_id  = NULL)

dKvale/mnrisks2011 documentation built on Feb. 18, 2022, 5:43 a.m.