get_vaa: NHDPlusV2 Attribute Subset

Description Usage Arguments Details Value Examples

View source: R/get_vaa.R

Description

Return requested NHDPlusv2 Attributes

Usage

1
get_vaa(atts = NULL, path = get_vaa_path(), download = TRUE)

Arguments

atts

character The variable names you would like, always includes comid

path

character path where the file should be saved. Default is a persistent system data as retrieved by nhdplusTools_data_dir. Also see: get_vaa_path

download

logical if TRUE, the default, will download VAA table if not found at path.

Details

The VAA data is a aggregate table of information from the NHDPlusV2 elevslope.dbf(s), PlusFlowlineVAA.dbf(s); and NHDFlowlines. All data originates from the EPA NHDPlus Homepage here. To see the location of cached data on your machine use get_vaa_path. To view aggregate data and documentation, see here

Value

data.frame containing requested VAA data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# This will download the vaa file to the path from get_vaa_path()

get_vaa("slope")
get_vaa(c("slope", "lengthkm"))

#cleanup if desired
unlink(dirname(get_vaa_path()), recursive = TRUE)

## End(Not run)

nhdplusTools documentation built on Aug. 18, 2021, 5:07 p.m.