joinStandDisturbance: joinStandDisturbance: compile stand disturbance data

Description Usage Arguments Value Examples

View source: R/joinStandDisturbance.R

Description

This function combines stand disturbance data for each plot. Visits without disturbances will have "None present" returned. Must run importData first.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
joinStandDisturbance(
  park = "all",
  QAQC = FALSE,
  locType = c("VS", "all"),
  panels = 1:4,
  from = 2006,
  to = 2021,
  output = "verbose",
  eventType = c("complete", "all"),
  ...
)

Arguments

park

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

"all"

Includes all parks in the network

"ACAD"

Acadia NP only

"MABI"

Marsh-Billings-Rockefeller NHP only

"MIMA"

Minute Man NHP only

"MORR"

Morristown NHP only

"ROVA"

Roosevelt-Vanderbilt NHS only

"SAGA"

Saint-Gaudens NHS only

"SARA"

Saratoga NHP only

"WEFA"

Weir Farm NHS only

QAQC

Allows you to remove or include QAQC events.

FALSE

Default. Only returns visits that are not QAQC visits

TRUE

Returns all visits, including QAQC visits

locType

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

"VS"

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

"all"

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

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

"complete"

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

"all

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.

Value

returns a dataframe with recorded disturbances

Examples

1
2
3
4
5
6
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)

KateMMiller/forestNETN documentation built on May 30, 2021, 6:39 a.m.