joinTreeData: joinTreeData: compiles tree data

Description Usage Arguments Value Examples

View source: R/joinTreeData.R

Description

This function combines location and event-level Tree data. Note that BA_cm2 was corrected for Loc_Type=='Deer' to be the same as Loc_Type=='VS' by multiplying BA_cm2 by 4 to get BA_cm2/400m2. Must run importData first.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
joinTreeData(
  status = c("all", "live", "dead"),
  speciesType = c("all", "native", "exotic"),
  park = "all",
  from = 2007,
  to = 2019,
  QAQC = FALSE,
  locType = "VS",
  panels = 1:4,
  dist_m = NA,
  output,
  ...
)

Arguments

status

Filter by live, dead, or all. Acceptable options are:

"all"

Includes all standing trees

"live"

live trees only

"dead"

dead trees only

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

dist_m

Filter trees by a distance that is less than or equal to the specified distance in meters of the tree to the center of the plot. If no distance is specified, then all trees will be selected. For example, to select an area of trees that is 100 square meters in area, use a distance of 5.64m.

Value

returns a dataframe with plot-level and visit-level tree data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
importData()
# compile tree data for live trees only in most recent survey in all parks
live_trees <- joinTreeData(status = 'live', from = 2015, to = 2018)

# compile FRSP trees within 7.3152m radius (FIA subplot size) in most recent survey
FRSP_100m <- joinTreeData(park = 'FRSP', from = 2015, to = 2018, dist_m = 7.3152)

# compile dead trees in GETT in most recent survey
GETT_dead <- joinTreeData(park = 'GETT', from = 2015, to = 2018, status = 'dead')

# compile exotic trees in VAFO in all years
VAFO_exotic <- joinTreeData(park = 'VAFO', from = 2015, to = 2018, speciesType = 'exotic')

KateMMiller/forestMIDNarch documentation built on April 9, 2021, 3:50 p.m.