getHUCList: Get list of HUCs

View source: R/HUCAgg.R

getHUCListR Documentation

Get list of HUCs

Description

A convenience function to retreive lists of HUCs according to a regex.

Usage

getHUCList(subRegion, subhucPoly)

Arguments

subRegion

A HUC 02 or 04 for which to retreive a list of all HUC12s.

subhucPoly

A subset of HUCs for the region in question.

Value

A list of unique hucs found.

Author(s)

David Blodgett dblodgett@usgs.gov

Examples

## Not run: 
load(system.file("extdata","testhucpoly.rda",package="HUCAgg"))
print(testhucPoly@data$HUC12)
hucList<-as.character(unlist(getHUCList("0709000205",testhucPoly)))
print(hucList)

## End(Not run)


USGS-R/HUCAgg documentation built on Nov. 24, 2022, 4:36 a.m.