Description Usage Arguments Value Note Examples
This function helps you pick which species you want to focus on for your state. TREE.CSV files for each state are large and by nature, contain a large amount of extraneous information. You may want to only look at softwoods or hardwoods or Maples. This function lets you put a vector of SPCD numbers and the full state tree file in, and receive a trimmed file with only your species of interest.
1 2 |
sppcodes |
A vector of the species spcd numbers. These are
found in the FIA's REF_SPECIES.csv file for your state, or
can be imported using the
|
treedb |
A dataframe containing the columns specified in select, along with an SPCD column. |
select |
The columns that you want to keep from the larger treedb. The default select values are "PLT_CN", "TREE", "SPCD", "DIA", "HT", "CR", "CDENCD", "TRANSCD", "BHAGE", "TOTAGE", and "CLIGHTCD." |
Returns a subsetted version of treedb with just the species you requested.
This function assumes that the HT and DIA columns, standard to the FIA datasets, are in feet and inches. It will automatically convert these to meters and centimeters, respectively.
1 2 3 4 | sampleSppCodes <- c(15, 20, 81)
## FullTreesCA is the CA_TREE.csv datafile from FIA
## see ?FullTreesCA for details
trees <- pullTrees(sampleSppCodes, FullTreesCA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.