add_hourly_temps: Add hourly temps to data frame

View source: R/hourly_temps.R

add_hourly_tempsR Documentation

Add hourly temps to data frame

Description

Add hourly temps to data frame

Usage

add_hourly_temps(data, lat, hours)

Arguments

data

data frame with columns date, tmin, and tmax

lat

location latitude

hours

either single value or list of hours of the day to calculate

Value

data frame with added columns hour and temp

Examples

data.frame(date = seq(as.Date("2000/1/1"), as.Date("2000/1/3"), "days"),
tmin = c(1, 2, 6), tmax = c(10, 12, 15)) %>% add_hourly_temps(lat = 45, hours = 0:23)


pruettm/agclimtools documentation built on Aug. 8, 2022, 10:21 a.m.