# Select the appropiate columns from a larger dataset with date information
# in Year, Month, Day format, define the values for the parameters latitude
# and elevation and estimate the hydrotermal indices on each year in the series.
library(magrittr)
library(dplyr)
Weather <- Tudela_DW %>%
select(Year, Month, Day, Tmax, Tmin, Prec, RHmax, RHmin, Rad, u2med)
elevation <- 314
latitude <- 42.13132
Tudela_BHI <- bioclim_hydrotherm(Weather, latitude, elevation)
Run the code above in your browser using DataLab