joinRegenData: joinRegenData: compiles seedling and sapling data

Description Usage Arguments Value Examples

View source: R/joinRegenData.R

Description

This function combines seedling and sapling data, and calculates stocking index. Must run importData first.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
joinRegenData(
  speciesType = c("all", "native", "exotic"),
  canopyForm = c("canopy", "all"),
  numMicros = 3,
  units = c("micro", "ha", "acres"),
  park = "all",
  from = 2006,
  to = 2018,
  QAQC = FALSE,
  locType = "VS",
  panels = 1:4,
  output,
  ...
)

Arguments

speciesType

Allows you to filter on native, exotic or include all species.

"all"

Default. Returns all species.

"native"

Returns native species only

"exotic"

Returns exotic species only

canopyForm

Allows you to filter on native, exotic or include all species.

"all"

Returns all species, including low canopy species.

"canopy"

Default. Returns canopy-forming species only

numMicros

Allows you to select 1, 2, or 3 microplots of data to summarize

units

Calculates seedling and sapling densities based on different units.

"micro"

Default. Returns seedling and sapling densities per microplot.

"ha"

Returns seedling and sapling densities per hectare

"acres"

Returns densities per acre

Value

returns a dataframe with seedling and sapling densities, and stocking index

Examples

1
2
3
4
5
6
7
8
9
importCSV('./forest_csvs/')
# compile seedling and sapling data for all parks and all species in most recent cycle
regen_data <- joinRegenData(canopyForm = 'all', from = 2015, to = 2018)

# compile regen data for only canopy-forming (default) and native species in SAGA for all years
SAGA_regen <- joinRegenData(park = 'SAGA', speciesType = 'native')

# compile only 1 microplot of data for ACAD native canopy-forming species for all but first year
ACAD_regen_m1 <- joinRegenData(park = 'ACAD', speciesType = 'native', numMicros = 1, from = 2007)

KateMMiller/forestNETNarch documentation built on Dec. 18, 2021, 2:41 a.m.