Learn R Programming

PhysioIndexR (version 0.1.0)

ctd: Canopy Temperature Depression (CTD)

Description

This function computes canopy temperature depression (CTD). For more details see Watson (1958) doi:10.1093/oxfordjournals.aob.a083596.

Usage

ctd(Gen, amb.temp, CT_PI)

Value

A list of output columns:

  • Gen: Character vector of genotype IDs.

  • CTD: Canopy temperature depression (CTD) values for respective genotypes.

Arguments

Gen

Character vector of genotype IDs.

amb.temp

Numeric scalar; ambient temperature (°C) (user must define this input).

CT_PI

Numeric vector; canopy temperature (°C) at phase I (PI).

References

Watson, D.J. (1958). doi:10.1093/oxfordjournals.aob.a083596.

Examples

Run this code
# Creating a sample dataset
df <- data.frame(
Gen = c("V1","V2","V3"),
CT_PI   = c(26.7,31.4,28.4)
)
ctd(df$Gen, amb.temp = 34.2, CT_PI = df$CT_PI)

Run the code above in your browser using DataLab