subset_huc_polygons: subset_huc_polygons

Description Usage Arguments Value Examples

View source: R/subset_huc_polygons.R

Description

Returns HUC polygons Dataset is subset on basis of area of interest

Usage

1
subset_huc_polygons(year, area_column, areas)

Arguments

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

Value

hc_sub dataframe, a subset of HUC polygon data

Examples

1
2
3
4
5
areas <- "ME" # 21 HUC8s in Maine
area_column <- "STATES"
year <- 1995
hc_sub <- subset_huc_polygons(year, area_column, areas)
hc_sub$HUCNAME

USGS-R/wateRuse_swuds documentation built on Dec. 8, 2019, 9:47 a.m.