Package: spatialRegroup 0.1.0
spatialRegroup: Iterative Spatial Regrouping of Administrative Units by Attributive Affinity
Evaluates the statistical coherence of existing administrative partitions (e.g. inter-municipal groupings, districts) by identifying spatial units whose attributive profile is more similar to a neighbouring group than to their own. Border units are iteratively reassigned to the group they are most affine with, based on Euclidean or Mahalanobis distance computed on user-supplied numeric variables, with optional per-variable weighting and standardisation. Spatial contiguity is enforced throughout: isolated candidates are reintegrated into their original group, disconnected fragments are resolved, and empty groups are restored. Convergence is monitored via an eta-squared cohesion criterion. The resulting partition can be compared to the original administrative delineation using multilevel models, providing a quantitative measure of boundary inefficiency.
Authors:
spatialRegroup_0.1.0.tar.gz
spatialRegroup_0.1.0.tar.gz(r-4.7-any)spatialRegroup_0.1.0.tar.gz(r-4.6-any)
spatialRegroup_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
spatialRegroup/json (API)
| # Install 'spatialRegroup' in R: |
| install.packages('spatialRegroup', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:dc61ccf871. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 113 | ||
| source / vignettes | OK | 170 | ||
| linux-release-x86_64 | OK | 100 | ||
| wasm-release | OK | 119 |
Exports:assign_best_groupbuild_neighborscompute_affinitycompute_cohesioncompute_profilesremove_isolatesspatialRegroup
Dependencies:bootclassclassIntclicpp11DBIdeldirdplyre1071genericsglueigraphKernSmoothlatticelifecyclemagrittrMASSMatrixpillarpkgconfigproxyR6Rcpprlangs2sfspspDataspdeptibbletidyselectunitsutf8vctrswithrwk
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Rattacher chaque commune candidate au groupe voisin le plus proche | assign_best_group |
| Construire la matrice de voisinage spatial | build_neighbors |
| Calculer les affinites attributaires des communes frontalières | compute_affinity |
| Calculer la coherence interne d'un groupement (eta-carre moyen) | compute_cohesion |
| Calculer les profils moyens par groupe | compute_profiles |
| Reintegrer les communes candidates isolees | remove_isolates |
| Regroupement spatial iteratif par affinite attributaire | spatialRegroup |
