download_by_state: download FIA database files by state

View source: R/download_FIADB.R

download_by_stateR Documentation

download FIA database files by state

Description

This function downloads FIA data for a single state

Usage

download_by_state(
  state,
  file_dir = tempdir(),
  files = c("PLOT", "SUBPLOT", "COND", "TREE", "SURVEY")
)

Arguments

state

character state abbreviation code

file_dir

directory into which files will be downloaded. By default this is the R temporary directory ('tempdir()')

files

list of FIA tables to download. Tables must be identified by their 'Oracle Table Name' as described in the 'Index of Tables' in FIADB User Guide.

Value

list of filepaths

Author(s)

Henry Rodman

Examples

## Not run: 
fia_files <- download_fia_by_state("MN")

## End(Not run)


SilviaTerra/tidyFIA documentation built on March 25, 2024, 8:15 p.m.