Returns HUC polygons Dataset is subset on basis of area of interest
subset_huc_polygons(year, area_column, areas)
| year | int, the year of interest to be mapped (defines historical basis for HUCs) |
|---|---|
| area_column | chr, defines which column the areas refer to for subsetting |
| areas | chr, vector of codes indicating area of interest to subset on |
hc_sub dataframe, a subset of HUC polygon data
areas <- "ME" # 21 HUC8s in Maine area_column <- "STATES" year <- 1995 hc_sub <- subset_huc_polygons(year, area_column, areas) hc_sub$HUCNAME#> NULL