gw_aggregate aggregates points from a given sf object to one of
six possible geographies: census block group and tract, precinct and ward,
neighborhood, and city.
gw_aggregate(.data, to, sf = TRUE, replace_na = TRUE, keep_na = FALSE)
| .data | A |
|---|---|
| to | The string name of an areal unit to aggregate to: |
| sf | A logical scalar; if |
| replace_na | A logical scalar; if |
| keep_na | A logical scalar; if |
gw_aggregate returns a table or simple features object with the requested data.