thermalTime: a function to calculate thermal time

Description Usage Arguments Details Value Examples

View source: R/thermalTime.R

Description

this function calculates the thermal time for an experiment according to several methods

Usage

1
2
3
4
5
6
7
8
thermalTime(
  datain,
  inSpecie,
  method,
  inDateS = NULL,
  inDateE = NULL,
  inTemp = NULL
)

Arguments

datain

input dataframe of meteo data from phis web service

inSpecie

character, studied specie

method

character, a method of thermal time's calculation ("parent","baseline")

inDateS

a date of sowing or thinning etc... start event ("YYYY-MM-DD")

inDateE

a date of harvesting ("YYYY-MM-DD")

inTemp

numeric, a baseline temperature for baseline's method

Details

Parent et. al. (2010). Modeling temperature-compensated physiological rates, based on the co-ordination of responses to temperature of developmental processes. Journal of Experimental Botany. 61 (8):2057-2069

if the Parent's model is chosen inTemp must be NULL

The input dataframe is extracted from phis web service (getEnvironment function) and is structured as follow: date, value, sensor, codeVariable and facility

Value

a dataframe

Examples

1
2
3
4
5
6
7
# Example for the model of Parent 2010
data(meteoDT)
head(meteoDT)
test<-thermalTime(datain=meteoDT,inSpecie="maize",method="parent",
                  inDateS="2017-04-02",
                  inDateE="2017-06-15",inTemp=NULL)
head(test)

sanchezi/openSilexStatR documentation built on Sept. 10, 2020, 1:03 p.m.