Giter Club home page Giter Club logo

tidyfia's Introduction

tidyFIA

Install

At this time you must install the tidyFIA package via GitHub.

remotes::install_github("SilviaTerra/tidyFIA")

Usage

The main function is tidy_fia which will import the specified tables from 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:

mn_data <- tidyFIA::tidy_fia(
  states = "MN",
  postgis = TRUE
)

SilviaTerra is hosting the FIADB data in a PostGIS database. Please reach out to Henry Rodman if you would like the password for the database. Alternatively you can ask tidy_fia to download and import the data directly from the CSVs stored at the FIA datamart by setting the parameter postgis to FALSE. This is slower than querying the database but will work without any authentication.

The example will import these tables by default: "plot", "subplot", "cond", "tree", "survey"

Each table is an element in the list mn_data. To use one of the tables you call them like this:

mn_data[["plot"]]
mn_data[["tree"]]
...

tidyfia's People

Contributors

hrodmn avatar nancpond avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.