extract_model_coverage: Extract a one-row summary of the model coverage

Description Usage Arguments Value Examples

View source: R/extractors.R

Description

This function takes the users information, the distance cutoff, and the number of facilities added, and then returns a one-row dataframe containing summary information about the coverage.

Usage

1
extract_model_coverage(augmented_user, distance_cutoff, n_added)

Arguments

augmented_user

dataframe obtained from augment_user()

distance_cutoff

numeric of the distance cutoff

n_added

numeric of the number of facilities added

Value

tibble of summary coverage info

Examples

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

augmented_users <- augment_user(
    facilities_selected = mc_facilities_selected,
    existing_facilities = x$existing_facility,
    existing_users = x$existing_user)

extract_model_coverage(
    augmented_user = augmented_users,
    distance_cutoff = x$distance_cutoff,
    n_added = x$n_added)

## End(Not run)

njtierney/copertura documentation built on Nov. 13, 2019, 6:37 p.m.