nhd_dl_state: nhd_dl_state

View source: R/load.R

nhd_dl_stateR Documentation

nhd_dl_state

Description

nhd_dl_state

Usage

nhd_dl_state(
  state,
  state_exists,
  yes_dl,
  file_ext,
  dsn = NA,
  wkt_filter = NA,
  temporary = FALSE,
  ...
)

Arguments

state

state abbreviation

state_exists

1 for file exists on disk

yes_dl

1 for downloading the state gdb file

file_ext

file extension ("gdb", etc)

dsn

name of gdb layer

wkt_filter

a text string of coordinates see sf::st_read

temporary

logical set FALSE to save data to a persistent rappdirs location

...

other arguments passed to sf::st_read

Examples

## Not run: 
nhd_dl_state("RI", 1, 0, NA, "NHDWaterbody")

## End(Not run)

nhdR documentation built on Aug. 12, 2023, 9:06 a.m.