View source: R/joinStandDisturbance.R
joinStandDisturbance | R Documentation |
This function combines stand disturbance data for each plot. Visits without disturbances will have "None present" returned. Must run importData first.
joinStandDisturbance(
park = "all",
QAQC = FALSE,
locType = c("VS", "all"),
panels = 1:4,
from = 2006,
to = as.numeric(format(Sys.Date(), "%Y")),
output = "verbose",
eventType = c("complete", "all"),
...
)
park |
Combine data from all parks or one or more parks at a time. Valid inputs:
|
QAQC |
Allows you to remove or include QAQC events.
|
locType |
Allows you to only include plots that are part of the GRTS sample design or include all plots, such as deer exclosures
|
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. |
from |
Year to start analysis, ranging from 2006 to current year |
to |
Year to stop analysis, ranging from 2006 to current year |
output |
Allows you to return all columns or just the most important columns for analysis. Valid inputs are "short" and "verbose". |
eventType |
Allows you to include only complete sampling events or all sampling events
|
... |
Other arguments passed to function. |
returns a dataframe with recorded disturbances
## Not run:
importData()
# import 4 years of MABI stand disturbances
stand_df <- joinStandDisturbance(park = 'MABI', from = 2015, to = 2019)
# import all visits, including QAQC, from 2019 in ACAD. Only return important data fields.
acad_stand <- joinStandDisturbance(park = ACAD, from = 2019, to = 2019, QAQC = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.