Tmax.find: Find Tmax

Description Usage Arguments Value Examples

Description

Find the daily maximum of tension

Usage

1
Tmax.find(tension, dates, ID)

Arguments

tension

Vector with tension.

dates

Vector with dates in the DOY format.

ID

Character vector for specifying which group the tension is assigned to (e.g. trees)

Value

Return a vector containing daily Tmax for each group specified in the ID argument

Examples

1
2
3
4
tension = c(1:20)
dates = c(rep(102, times=10), rep(103, times=10))
ID = c(rep("A", times=5), rep("B", times=5), rep("A", times=5), rep("B", times=5))
Tmax.find(tension=tension, dates=dates, ID=ID)

Example output

  ID DOY Tmax
1  A 102    5
2  A 103   15
3  B 102   10
4  B 103   20

TDPanalysis documentation built on Feb. 28, 2020, 9:09 a.m.