Не ясно, как должен быть возвращен вывод
library(dplyr)
library(purrr)
library(lubridate)
df1 %>%
group_split(Y = year(DateTime)) %>%
map(~ {dat <- .x; map2(A_params, K_params,
~ downscale_wind(.x, .y, v_rean = dat$ws_10m))})
data
df1 <- structure(list(DateTime = structure(c(315550800, 315554400, 315558000,
315561600, 315565200, 315568800), class = c("POSIXct", "POSIXt"
), tzone = ""), wind_speed_2m = c(5.729406, 5.483071, 5.107409,
5.923226, 5.889817, 5.573752), ws_80m = c(5.969776, 5.713106,
5.321683, 6.171727, 6.136917, 5.807591), e_50 = c(11.800519,
10.106499, 7.523108, 13.133396, 12.903649, 10.730101), ws_10m = c(4.435526,
4.244821, 3.953995, 4.585575, 4.559711, 4.315024)), row.names = c("1",
"2", "3", "4", "5", "6"), class = "data.frame")
K_params <- c(2.428, 2.15, 0.986, 1.057, 1.131, 1.658, 1.861, 1.479, 1.334,
3.385, 3.725, 1.303)
A_params <- c(7.67, 6.51, 2.49, 1.28, 1.25, 1.79, 1.97, 1.99, 3.86, 9.34,
10.12, 1.76)