R port of redcap (Regionalization with dynamically constrained agglomerative clustering and partitioning).