gather.lpi: Gather LPI data into tall/long data frames

Description Usage Arguments Value

View source: R/gather.lpi.R

Description

Given a list of data frames containing tblSites, tblPlots, tblLines, tblLPIHeader, and tblLPIDetail, create a tall format data frame for canopy data from LPI and one for heights from the specialized height fields.

Usage

1
2
3
## S3 method for class 'lpi'
gather(dima.tables, meta = TRUE,
  species.characteristics = TRUE)

Arguments

dima.tables

A list of data frames. Recommended to use the output fromread.dima(). Must contain data frames called tblLPIHeader and tblLPIDetail which have the same fields as the tables in DIMA with the same names. If meta is TRUE then it must also include data frames called tblSites, tblPlots, and tblLines which have the same fields as the tables in DIMA with the same names. If species.characteristics is TRUE then it must also include data frames called tblSpecies and tblSpeciesGrowthHabit (and optionally tblSpeciesGroups) which have the same fields as the tables in DIMA with the same names.

meta

Logical. If TRUE then the site, plot, and line names and keys will be added to the output data frames from dima.list using the data frames called tblSites, tblPlots, and tblLines. Defaults to TRUE

species.characteristics

Logical. If TRUE then the available species information will be added from dima.list using the data frames tblSpecies, tblSpeciesGrowthHabit, and, if available, tblSpeciesGroups. Defaults to TRUE.

Value

A list of two data frames: one containing the data from the LPI pin intercepts and one containing the data from the height methd done alongside pin drops.


nstauffer/dima.tools documentation built on May 20, 2019, 2:09 p.m.