View source: R/joinRegenData.R
joinRegenData | R Documentation |
This function combines live seedling and sapling data collected in quadrats and microplots, and calculates the stocking index. Each row represents a species observed per visit. If no seedlings or saplings were observed, function returns "None present" for ScientificName and 0 for densities. If a record has a blank ScientificName and associated data, it means it's a missing value. These are rare, but mostly occur in data <2011. Note that the stocking index only includes saplings < 2.5cm DBH, but the sapling density returned is all saplings > 1cm and <10cm DBH. Must run importData first.
joinRegenData(
park = "all",
from = 2007,
to = as.numeric(format(Sys.Date(), "%Y")),
QAQC = FALSE,
panels = 1:4,
locType = c("VS", "all"),
eventType = c("complete", "all"),
speciesType = c("all", "native", "exotic", "invasive"),
canopyForm = c("all", "canopy"),
units = c("sq.m", "ha", "acres"),
...
)
park |
Combine data from all parks or one or more parks at a time. Valid inputs:
|
from |
Year to start analysis, ranging from 2007 to current year |
to |
Year to stop analysis, ranging from 2007 to current year |
QAQC |
Allows you to remove or include QAQC events.
|
panels |
Allows you to select individual panels from 1 to 4. Default is all 4 panels (1:4). If more than one panel is selected, specify by c(1, 3), for example. |
locType |
Allows you to only include plots that are part of the GRTS sample design or include all plots, such as deer exclosures.
|
eventType |
Allows you to include only complete sampling events or all sampling events
|
speciesType |
Allows you to filter on native, exotic or include all species.
|
canopyForm |
Allows you to filter on species growth form
|
units |
Calculates seedling and sapling densities based on different units.
|
... |
Other arguments passed to function. |
returns a dataframe with seedling and sapling densities, stocking index.
## Not run:
importCSV('./forest_csvs/')
# Compile seedling and sapling data for all parks and all species in most recent cycle,
# and only include seedlings >=15cm tall (default).
regen_data <- joinRegenData(canopyForm = 'all', from = 2015, to = 2018)
# compile regen data for canopy-forming (default), native species of all size classes in VAFO for all years
VAFO_regen <- joinRegenData(park = 'VAFO', speciesType = 'native')
# Compile seedling and sapling densities as stems/ha for all parks in most recent survey
regen_data <- joinRegenData(units = 'ha', from = 2015, to = 2018)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.