Skip to contents

Data

Data provided with maxcovr

york
York Listed Buildings.
york_crime
York Crime Locations.

Optimisers

Solve the maximum covering location problem and other extension to this problem

max_coverage()
Solve the Maximal Covering Location Problem
max_coverage_relocation()
Maximum Coverage when considering relocation

Distance Tools

Tools to help with the calculation of distances

nearest()
Find the nearest lat/long to another lat/long
nearest_facility_dist()
nearest facility + distance to a user
facility_user_dist()
facility_user_dist
facility_user_indic()
facility_user_indic
spherical_distance()
Calculate the distance between two locations
spherical_distance_cpp()
Calculate distance using haversines formula
distance_matrix_cpp()
Create a matrix of distances between two areas
binary_matrix_cpp()
Create a binary matrix TRUE if distance satisfies a condition

Summary functions

Summarise content from maxcovr

summarise_coverage()
Summarise coverage
summary_mc_cv()
Summary for max_coverage cross validation
extract_mc_results()
(Internal) Summarise maxcovr model using facility and user information
extract_mc_results_relocation()
(Internal) Summarise maxcovr relocation model with facility and user info
augment_facility_relocated()
Find distance from relocated and proposed new sites
augment_user()
Augment users data; add useful information
augment_user_tested()
Nearest wrapper
coverage()
Create a summary of the coverage between two dataframes
summarise_relocated_dist()
Find the average distance from facilities relocated to their final place
summarise_user_cov()
Summarise the coverage for users
summary_mc_cv_relocate()
Summary for max_coverage cross validation for relocation models

Helpers

Little helper functions

deg2rad_cpp()
Convert degrees to radians
is.maxcovr()
Test if the object is a maxcovr object
is.maxcovr_relocation()
Test if the object is a maxcovr_relocation object
n_installed()
Extract the number of facilities installed
n_relocated()
Extract the number of facilities relocated.
spherical_distance_cpp_vec()
Calculate (vectorized) distance using haversines formula