Description Usage Arguments Value Examples
This function is wrapper to nearest
, adding is_covered
to the model. This
function is explicit about inputs, and is useful in cross validation -
evaluating how test data performs against suggested facilities in the
training set. This might be added to nearest
, and may become obsolete.
1 | augment_user_tested(all_facilities, test_data, distance_threshold = 100)
|
all_facilities |
data.frame Facilities selected in maxcovr model |
test_data |
data.frame test data (but it could be any |
distance_threshold |
numeric |
dataframe containing distances between each test data observation and the nearest facility.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
mc_cv_relocate_n100_cut %>%
mutate(user_nearest_test = map2(
.x = facilities_selected,
.y = test,
.f = augment_user_tested
))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.