augment_facility_relocated: Find distance from relocated and proposed new sites

View source: R/augmenters.R

augment_facility_relocatedR Documentation

Find distance from relocated and proposed new sites

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

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


## 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. 27, 2024, 7:51 a.m.