| thermalTimeHourly | R Documentation |
Calculate thermal time using the hourly temperature (non daily temperature)
thermalTimeHourly(timestamp, temperature, x_temp, y_temp)
timestamp |
The timestamp of weather records |
temperature |
The temperature |
x_temp |
The cardinal temperatures |
y_temp |
The effective thermal time |
A data frame with daily thermal time
met_file <- system.file("extdata/WeatherHourly.csv", package = "weaana")
hourly <- read.csv(met_file, as.is = TRUE)
hourly$timestamp <- as.POSIXct(hourly$timestamp, format = "%Y-%m-%dT%H:%M:%SZ")
x_temp <- c(0, 20, 35)
y_temp <- c(0, 20, 0)
thermalTimeHourly(hourly$timestamp, hourly$temperature, x_temp, y_temp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.