# for a singfle value
rh2q(rh = 99, temp = 25)
# vector of rh values
rh2q(rh = c(0,seq(1,100, by = 4)), temp = 25)
# vector of values for rh and temp
rh2q(rh = c(0,seq(1,100, by = 4)), temp = 10:35)
# rh is data.frame and temp is a value
times <- seq(as.POSIXct('2024-01-01',tz = 'UTC'),
as.POSIXct('2024-01-02',tz = 'UTC'),
by = 'hour')
rh2q(rh = data.frame(time = times, a = seq(1,100, by = 4)),temp = 25)
# using both rh and temp are data.frames
rh2q(rh = data.frame(time = times, a = seq(1,100, by = 4)),
temp = data.frame(time = times, a = 11:35))
Run the code above in your browser using DataLab