
Summarize Acres of Overlay Features within HUC12 Watersheds
Source:R/summarize_acres_by_huc12.R
summarize_acres_by_huc12.RdSummarize Acres of Overlay Features within HUC12 Watersheds
Arguments
- huc12
An sf object representing HUC12 watersheds
- overlay
An sf object representing layers to be summarized (e.g., wetlands) if overlay is polygon it calculates acres, if point it just returns a count
- huc_id_col
The name of the column identifying each HUC12 unit (default: "huc12")
- group_vars
Optional character vector of additional grouping columns from the overlay layer (e.g., c("wetland_type"))
Examples
if (FALSE) { # \dontrun{
huc12 <- get_geoserver_layer("all_columbia_huc_12s")
geohazards <- get_geoserver_layer("columbia-geologic-hazard")
geohaz_acres <- summarize_acres_by_huc12(huc12 = huc12,
overlay = geohazards, group_vars = "forpehrtdc")
} # }