summarise_relocated_dist: Find the average distance from facilities relocated to their...

View source: R/augmenters.R

summarise_relocated_distR Documentation

Find the average distance from facilities relocated to their final place

Description

This takes data from the function augment_facility_relocated function of the same name and then summarises it to find the average and sd of the distance between the two.

Usage

summarise_relocated_dist(augment_facility_relocated)

Arguments

augment_facility_relocated

dataframe from function: augment_facility_relocated

Value

dataframe

Examples


## Not run: 

mc_cv_n100_test |>
    mutate(
        facility_distances = map2(
            .x = proposed_facility,
            .y = existing_facility,
            .f = augment_facility_relocated
        ),
        summary_relocated_dist = map(
            .x = facility_distances,
            .f = summarise_relocated_dist
        )
    ) |>
    # select(facility_distances) |>
    select(summary_relocated_dist) |>
    .[[1]]


## End(Not run)


njtierney/maxcovr documentation built on Nov. 27, 2024, 7:51 a.m.