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

Description Usage Arguments Value Examples

View source: R/augmenters.R

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

1

Arguments

augment_facility_relocated

dataframe from function: augment_facility_relocated

Value

dataframe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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/copertura documentation built on Nov. 13, 2019, 6:37 p.m.