Conversion of a long format data frame of environmental driver data and PhenoCam reference data to a wide format where every list item contains a large matrix of each value, with columns the site years and rows day-of-year.
df_to_list(df)
a data frame or tibble
wide format matrix per environmental variable split with columns named after site and year, and rows as day-of-year
This allows for vectorization of the certain operations to speed up model parameterization.