joinCWDData: joinCWDData: compile coarse woody debris volume data.

View source: R/joinCWDData.R

joinCWDDataR Documentation

joinCWDData: compile coarse woody debris volume data.

Description

This function combines and calculates CWD volume for each plot. Must run importData() first. Function only works for complete visits.

Usage

joinCWDData(
  park = "all",
  from = 2006,
  to = as.numeric(format(Sys.Date(), "%Y")),
  QAQC = FALSE,
  panels = 1:4,
  locType = c("VS", "all"),
  output = "short",
  units = c("ha", "acres"),
  ...
)

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

from

Year to start analysis, ranging from 2006 to current year

to

Year to stop analysis, ranging from 2006 to current year

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

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

"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.

output

Allows you to return all columns or just the most important columns for analysis. Valid inputs are "short" and "verbose".

units

Calculates CWD Volume based on different units.

"ha"

Default. Returns CWD volume as cubic m/hectare

"acres"

Returns CWD volume as cubic ft/acre

...

Other arguments passed to function.

Value

returns a dataframe with CWD volume for each plot, species, decay class combination

Examples

## Not run: 
importData() #imports data

# Compile CWD data for MABI for most recent survey and return in ft^3/acre
cwd_data <- joinCWDData(park = 'MABI', from = 2016, to = 2019, units = 'acres')

# Compile CWD data for all parks and years in m^3/ha, including QAQC events.
cwd_data <- joinCWDData(park = 'all', QAQC = TRUE)

## End(Not run)

KateMMiller/forestNETN documentation built on Nov. 11, 2024, 6:07 a.m.