Package: maxcovr 0.1.3.9200

maxcovr: A Set of Tools For Solving The Maximal Covering Location Problem

Solving the "maximal covering location problem" as described by Church can be difficult for users not familiar with linear programming. maxcovr provides functions to make it easy to solve this problem, and tools to calculate facility coverage.

Authors:Nicholas Tierney [aut, cre], Mark Padgham [aut]

maxcovr_0.1.3.9200.tar.gz
maxcovr_0.1.3.9200.zip(r-4.5)maxcovr_0.1.3.9200.zip(r-4.4)maxcovr_0.1.3.9200.zip(r-4.3)
maxcovr_0.1.3.9200.tgz(r-4.4-x86_64)maxcovr_0.1.3.9200.tgz(r-4.4-arm64)maxcovr_0.1.3.9200.tgz(r-4.3-x86_64)maxcovr_0.1.3.9200.tgz(r-4.3-arm64)
maxcovr_0.1.3.9200.tar.gz(r-4.5-noble)maxcovr_0.1.3.9200.tar.gz(r-4.4-noble)
maxcovr_0.1.3.9200.tgz(r-4.4-emscripten)maxcovr_0.1.3.9200.tgz(r-4.3-emscripten)
maxcovr.pdf |maxcovr.html
maxcovr/json (API)
NEWS

# Install 'maxcovr' in R:
install.packages('maxcovr', repos = c('https://njtierney.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/njtierney/maxcovr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

distancelinear-programming

5.46 score 42 stars 46 scripts 24 exports 35 dependencies

Last updated 5 years agofrom:2e90522318. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 24 2024
R-4.5-win-x86_64NOTESep 24 2024
R-4.5-linux-x86_64NOTESep 24 2024
R-4.4-win-x86_64NOTESep 24 2024
R-4.4-mac-x86_64NOTESep 24 2024
R-4.4-mac-aarch64NOTESep 24 2024
R-4.3-win-x86_64NOTESep 24 2024
R-4.3-mac-x86_64NOTESep 24 2024
R-4.3-mac-aarch64NOTESep 24 2024

Exports:augment_facility_relocatedaugment_user_testedbinary_matrix_cppcoveragedeg2rad_cppdistance_matrix_cppfacility_user_distfacility_user_indicis.maxcovris.maxcovr_relocationmax_coveragemax_coverage_relocationn_installedn_relocatednearestnearest_facility_distspherical_distancespherical_distance_cppspherical_distance_cpp_vecsummarise_coveragesummarise_relocated_distsummarise_user_covsummary_mc_cvsummary_mc_cv_relocate

Dependencies:bitbit64clicliprcpp11crayondplyrfansigenericsgluehmslifecyclelpSolvemagrittrpillarpkgconfigprettyunitsprogresspurrrR6RcppreadrRglpkrlangslamstringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr

Using Cross Validation with maxcovr

Rendered fromcross_validation_with_maxcovr.Rmdusingknitr::rmarkdownon Sep 24 2024.

Last update: 2018-07-20
Started: 2016-12-07

Using max_coverage_relocation

Rendered fromusing_max_coverage_relocation.Rmdusingknitr::rmarkdownon Sep 24 2024.

Last update: 2018-07-20
Started: 2017-01-18

Using maxcovr

Rendered fromintro_to_maxcovr.Rmdusingknitr::rmarkdownon Sep 24 2024.

Last update: 2018-07-20
Started: 2016-12-03

Readme and manuals

Help Manual

Help pageTopics
Find distance from relocated and proposed new sitesaugment_facility_relocated
Augment users data; add useful informationaugment_user
Nearest wrapperaugment_user_tested
(Internal) Create a binary distance matrixbinary_distance_matrix
Create a binary matrix TRUE if distance satisfies a conditionbinary_matrix_cpp
Create a summary of the coverage between two dataframescoverage
Convert from degrees to radiansdeg2rad
Convert degrees to radiansdeg2rad_cpp
Create a matrix of distances between two areasdistance_matrix_cpp
Extract the existing coverageextract_existing_coverage
Extract Selected Facilitiesextract_facility_selected
(Internal) Summarise maxcovr model using facility and user informationextract_mc_results
(Internal) Summarise maxcovr relocation model with facility and user infoextract_mc_results_relocation
Extract a one-row summary of the model coverageextract_model_coverage
Extract users affectedextract_users_affected
facility_user_distfacility_user_dist
facility_user_indicfacility_user_indic
(Internal) Create a dataframe of the users not coveredfind_users_not_covered
Test if the object is a maxcovr objectis.maxcovr
Test if the object is a maxcovr_relocation objectis.maxcovr_relocation
Solve the Maximal Covering Location Problemmax_coverage
Maximum Coverage when considering relocationmax_coverage_relocation
maxcovrmaxcovr
Extract the number of facilities installedn_installed
Extract the number of facilities relocated.n_relocated
Find the nearest lat/long to another lat/longnearest
nearest facility + distance to a usernearest_facility_dist
(Internal) Calculate the nearest facility distancesnearest_facility_distances
Calculate the distance between two locationsspherical_distance
Calculate distance using haversines formulaspherical_distance_cpp
Calculate (vectorized) distance using haversines formulaspherical_distance_cpp_vec
summarise_coveragesummarise_coverage
Find the average distance from facilities relocated to their final placesummarise_relocated_dist
Summarise the coverage for userssummarise_user_cov
Summary for max_coverage cross validationsummary_mc_cv
Summary for max_coverage cross validation for relocation modelssummary_mc_cv_relocate
York Listed Buildings.york
York Crime Locations.york_crime