augment_facility_relocated: Find distance from relocated and proposed new sites

Description Usage Arguments Value Examples

View source: R/augmenters.R

Description

This takes the proposed sites and the existing sites, with additional information from the model, and then returns a dataframe of all of the existing facilities that were relocated, and provides the distance to the nearest facility, which is presumably the location to which it was relocated to.

Usage

1
augment_facility_relocated(proposed_facility, existing_facility)

Arguments

proposed_facility

facilities proposed for the model - but this data has extra information (is_installed) in it.

existing_facility

facilities existing for the model - but this data has extra information (is_relocated) in it.

Value

dataframe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

mc_cv_n100_test %>%
  mutate(facility_distances = map2(
    .x = proposed_facility,
    .y = existing_facility,
    .f = augment_facility_relocated)) %>%
  select(facility_distances) %>%
  .[[1]]


## End(Not run)

njtierney/maxcovr documentation built on Nov. 13, 2019, 6:38 p.m.