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. 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 = 2006,
  to = 2018,
  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 ACAD trees within 100m^2 circle in most recent survey
ACAD_100m <- joinTreeData(park = 'ACAD', from = 2015, to = 2018, dist_m = 5.64)

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

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

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