Learn R Programming

frost (version 0.0.4)

getTrend: Temperature trend during a frost night.

Description

Predict the trend of the temperature during a frost night. This equation has been taken from UC Davis formula [1] which was also published in the FAO book mentioned in predFAO function.

[1] <http://biomet.ucdavis.edu/frostprotection/fp002.htm>

Usage

getTrend(Tmin, t2, n, plot = FALSE)

Arguments

Tmin

predicted minimum temperature.

t2

temperature 2 hours after sunset, where t2 > Tmin

n

how many hours between sunset and sunrise, an integer value where n > 2

plot

TRUE if you want to see the trend plot, otherwise FALSE. Default value: FALSE

Value

A data frame with the (x,y) points plotted, where y values are the n-2 values of estimated temperatures

Examples

Run this code
# NOT RUN {
getTrend(Tmin = 22.2,t2 = 33.7,n = 15) # in <U+00B0>F degress
getTrend(Tmin = -5.45,t2 = 0.95,n = 15,plot=TRUE) # in <U+00B0>C degress
# }

Run the code above in your browser using DataLab