merge_by {redist} | R Documentation |
Merge map units
Description
In performing a county-level or cores-based analysis it is often necessary to merge several units together into a larger unit. This function performs this operation, modifying the adjacency graph as needed and attempting to properly aggregate other data columns.
Usage
merge_by(.data, ..., by_existing = TRUE, drop_geom = TRUE, collapse_chr = TRUE)
Arguments
.data |
a |
... |
|
by_existing |
if an existing assignment is present, whether to also group by it |
drop_geom |
whether to drop the geometry column. Recommended, as otherwise a costly geometric merge is required. |
collapse_chr |
if |
Value
A merged redist_map
object
[Package redist version 4.2.0 Index]