View source: R/joinStandData.R
joinStandData | R Documentation |
This function combines stand-level data for each plot, including cover by strata, earthworms presence/absence, plot slope, canopy cover, etc. Must run importData first.
joinStandData(
park = "all",
QAQC = FALSE,
locType = c("VS", "all"),
panels = 1:4,
from = 2006,
to = as.numeric(format(Sys.Date(), "%Y")),
eventType = c("complete", "all"),
output = "verbose",
...
)
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 |
eventType |
Allows you to include only complete sampling events or all sampling events
|
output |
Allows you to return all columns or just the most important columns for analysis. Valid inputs are "short" and "verbose". |
... |
Other arguments passed to function. |
returns a dataframe with stand data attached to location and event data. Field names starting with "Pct" are midpoints between cover class ranges (e.g., 62.5 is the midpoint for 50-75
## Not run:
importData()
# import 4 years of MABI stand data
stand_df <- joinStandData(park = 'MABI', from = 2015, to = 2019)
# import all visits, including QAQC, from 2019 in ACAD. Only return important data fields.
acad_stand <- joinStandData(park = ACAD, from = 2019, to = 2019, QAQC = TRUE, output = 'short')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.