[ad_1]
Recently I came across over this library in R spatialEco. I want to calculate the Kendall tau statistic for a raster stack in R. but I get an Error to
“install EnvStats package before running this function”,
when I install this package, then get another Error :
“Error in (function (y, x = seq(along = y), alternative = “two.sided”, : When ci.slope=TRUE, there must be at least 3 non-missing, finite observations”.
…
`files_Bio1 <- list.files(path=”e:/Pastclim/trend/Bio1/”, pattern=’asc$’, full.names=TRUE)
Current_Bio2 <- stack(files_Bio2)
names(Current_Bio2)
library(spatialEco)
m_Bio1 <- spatialEco::raster.kendall(Current_Bio2, intercept = FALSE, p.value = FALSE, confidence = FALSE,
Error in spatialEco::raster.kendall(Current_Bio2, intercept = FALSE, p.value = FALSE, :
please install EnvStats package before running this function
…
[ad_2]