Learn R Programming

TDPanalysis (version 1.0)

Wat.transp: Calculate daily transpiration

Description

Calculate daily transpiration for each sub-group inputed

Usage

Wat.transp(Sapflow, days, ID)

Arguments

Sapflow

Vector with sap flow.

days

Vector containg the days for which to calculate transpiration

ID

Character vector containing identification for each sub-group

Value

Return a data frame with transpiration for each day and sub-group inputed

Details

!!Beware of the units!! The Granier formula usually convert tension into sap flow density (in kg.dm-2.h-1). So, you should first convert sap flow density into sap flow (in kg.h-1). Moreover, if you take measurment every 30 minutes sap flow should be corrected by dividing the value by 2.

Examples

Run this code
# NOT RUN {
ID = c(rep("A", times=5), rep("B", times=5), rep("A", times=5), rep("B", times=5))
Sapflow = c(rep(2.5, times=5), rep(2.7, times=5), rep(3.2, times=5), rep(3.4, times=5))
days = c(rep(102, times=10), rep(103, times=10))
Wat.transp(Sapflow=Sapflow, days=days, ID=ID)
# }

Run the code above in your browser using DataLab