Skip to content

Commit

Permalink
update README with file_dir notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Mar 6, 2024
1 parent e75e3e6 commit c8583b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@ FIADB that correspond to an area of interest represented by a geospatial object
in R (class `sf`) or a list of state abbreviations (e.g. `c("CA", "NV")`).

To get started you can simply run this example command to get the FIA tables for
the state of Minnesota:
the state of Minnesota.
```r
mn_data <- tidyFIA::tidy_fia(
states = "MN",
postgis = TRUE
postgis = FALSE,
file_dir = tempdir() # replace this with any normal directory to cache downloaded files!
)
```

By default, state-wise zip files will be downloaded from the FIA datamartto the
R temporary directory(`tempdir()`) but you can specify them to be downloaded
to any directory which makes it possible to use files downloaded during a previous
R session.

## Database
[NCX](https://ncx.com) is hosting a clone of FIADB data in a PostGIS database
and you are welcome to use it!
Expand Down

0 comments on commit c8583b9

Please sign in to comment.