Description Usage Arguments Value Examples
This returns the user
dataframe, with added columns containing distance
between that user and a given facility - IDs are generated for IDs and
facilities that correspond to their row number.
1 | augment_user(facilities_selected, existing_facilities, existing_users)
|
facilities_selected |
dataframe of facilities selected, obtained from
|
existing_facilities |
existing facilities |
existing_users |
existing users |
tibble of users, with distances between each user and facility
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
mc_facilities_selected <-extract_facility_selected(
solution_vector = x$lp_solution$solution,
A_mat = x$A,
proposed_facilities = x$proposed_facility)
augmented_users <- augment_user(
facilities_selected = mc_facilities_selected,
existing_facilities = mc_cv_fit_n20_test_1$existing_facility,
existing_users = mc_cv_fit_n20_test_1$existing_user
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.