joinStandData: joinStandData: compile stand data

View source: R/joinStandData.R

joinStandDataR Documentation

joinStandData: compile stand data


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.


  park = "all",
  locType = c("VS", "all"),
  panels = 1:4,
  from = 2006,
  to = as.numeric(format(Sys.Date(), "%Y")),
  eventType = c("complete", "all"),
  output = "verbose",



Combine data from all parks or one or more parks at a time. Valid inputs:


Includes all parks in the network


Acadia NP only


Marsh-Billings-Rockefeller NHP only


Minute Man NHP only


Morristown NHP only


Roosevelt-Vanderbilt NHS only


Saint-Gaudens NHS only


Saratoga NHP only


Weir Farm NHS only


Allows you to remove or include QAQC events.


Default. Only returns visits that are not QAQC visits


Returns all visits, including QAQC visits


Allows you to only include plots that are part of the GRTS sample design or include all plots, such as deer exclosures


Only include plots that are part of the Vital Signs GRTS sample design


Include all plots, such as plots in deer exclosures or test plots.


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.


Year to start analysis, ranging from 2006 to current year


Year to stop analysis, ranging from 2006 to current year


Allows you to include only complete sampling events or all sampling events


Default. Only include sampling events for a plot that are complete.


Include all plot events with a record in tblCOMN.Event, including plots missing most of the data associated with that event (eg ACAD-029.2010). This feature is currently hard-coded in the function.


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: 
# 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)

KateMMiller/forestNETN documentation built on April 28, 2024, 8:48 a.m.