使用包';fruclimadapt';

使用包';fruclimadapt';,r,dplyr,mutate,R,Dplyr,Mutate,我在使用带有简单data.frame的“fruclimadapt”包时遇到问题。 该软件包允许根据日期和天气数据计算生物气候指数 我已将另一个data.frame中我感兴趣的变量组合在一个data.frame中 然后我想应用程序包中的函数“bioclim_(数据、纬度、高程)”: 我不明白我的错误在哪里,因为包中的其他函数与我的数据配合得很好: climdata_temp<-bioclim_thermal(z, latitude) 这是一个最新的软件包,所以我不知道这是一个b

我在使用带有简单data.frame的“fruclimadapt”包时遇到问题。 该软件包允许根据日期和天气数据计算生物气候指数

  • 我已将另一个data.frame中我感兴趣的变量组合在一个data.frame中

  • 然后我想应用程序包中的函数“bioclim_(数据、纬度、高程)”:

我不明白我的错误在哪里,因为包中的其他函数与我的数据配合得很好:

climdata_temp<-bioclim_thermal(z, latitude) 

这是一个最新的软件包,所以我不知道这是一个bug还是问题来自我的代码


有人有想法吗?< /P>请考虑通过粘贴DPT(数据)的输出而不是格式化来发布您的数据。table@GuedesBF是的,对不起,我刚刚更新了我的问题。我希望现在没事了

Erreur : Problem with `mutate()` input `N`.
x Input `N` can't be recycled to size 0.
i Input `N` is `N_n`.
i Input `N` must be size 0 or 1, not 6.

climdata_temp<-bioclim_thermal(z, latitude) 


structure(list(Year = c(1961, 1961, 1961, 1961, 1961, 1961, 1961, 
1961, 1961, 1961), Month = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), Day = 1:10, 
    Tmin = c(0.8, 7.6, 2.8, 5.6, 1.9, 5.9, 0.8, 5.7, 4.7, 4.9
    ), Tmax = c(11.1, 12, 8.3, 9.7, 9.8, 9, 11.4, 11.3, 10.3, 
    7.5), Prec = c(18.1, 35.7, 7.9, 0, 10.3, 3.1, 5.8, 4.3, 8.3, 
    0)), row.names = c(NA, -10L), groups = structure(list(Year = c(1961, 
1961, 1961, 1961, 1961, 1961, 1961, 1961, 1961, 1961), Month = c(1, 
1, 1, 1, 1, 1, 1, 1, 1, 1), Day = 1:10, .rows = structure(list(
    1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L), ptype = integer(0), class = c("vctrs_list_of", 
"vctrs_vctr", "list"))), row.names = c(NA, -10L), class = c("tbl_df", 
"tbl", "data.frame"), .drop = TRUE), class = c("grouped_df", 
"tbl_df", "tbl", "data.frame"))