Learn R Programming

meteor (version 0.4-5)

dayTemp: Estimate the temperature during the day

Description

Estimate the mean temperature during the day (between sunrise and sunset) from daily minimum and maximum temperature.

The function requires the day of the year and latitude to compute the photoperiod.

Usage

dayTemp(tmin, tmax, doy, latitude)

Value

numeric

Arguments

tmin

numeric. minimum temperature (any unit)

tmax

numeric. maximum temperature (any unit)

doy

integer. Day of the year (between 1 and 365)

latitude

numeric. Latitude

Examples

Run this code
dayTemp(c(20,22), c(28,34), c(150,151), 52)

Run the code above in your browser using DataLab