ComputeIncrementation: ComputeIncrementation

View source: R/ComputeIncrementation.R

ComputeIncrementationR Documentation

ComputeIncrementation

Description

ComputeIncrementation

Usage

ComputeIncrementation(Var, Type, Time = NULL)

Arguments

Var

Variable (numeric)

Type

Type of incrementation: "absolute" or "annual" (character)

  • "absolute": absolute increment (not divided by time between 2 values)

  • "annual": annual increment

Time

Time variable if Type = "annual" (numeric)

Value

Absolute or annual incrementation of the variable

Examples


Diameter = c(13, 14, 15, 16, 30, 19, 15, 21, 23)
Time = c(2000, 2002, 2004, 2006, 2008, 2012, 2014, 2016, 2020)
Rslt <- ComputeIncrementation(Var = Diameter, Type = "annual", Time = Time)


VincyaneBadouard/TreeData documentation built on Jan. 4, 2024, 2:56 a.m.