stand_dynamics: Calculation of stand-level dynamics

Description Usage Arguments Value

View source: R/stand_dynamics.R

Description

Calculation of stand-level dynamics

Usage

1
2
3
4
5
6
7
8
9
stand_dynamics(
  id,
  var,
  dvar = NULL,
  year,
  group = NULL,
  plot = NULL,
  site = NULL
)

Arguments

id

A vector of individual trees (or stems) IDs

var

A numerical vector of the same size as id, containing the measurements of the target variable

dvar

Optional, a vector with variable change between 2 censuses.

year

A numerical vector (same size as id), containing census years

group

Optional; a vector (same size as id), containing a grouping factor.

site

Optional; a vector (same size as id), containing the measurements' site

Value

A data.table (data.frame) with stocks, annual gain and loss of var for every census year and group level.


cpiponiot/cdynfgeo documentation built on July 7, 2020, 3:27 p.m.