Learn R Programming

nhdR (version 0.6.1)

nhd_dl_state: 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

Run this code
if (FALSE) {
nhd_dl_state("RI", 1, 0, NA, "NHDWaterbody")
}

Run the code above in your browser using DataLab