# \donttest{
library(terra)
# note; nonsense example with n=9
r <- c(rast(system.file("ex/logo.tif", package="terra")),
rast(system.file("ex/logo.tif", package="terra")),
rast(system.file("ex/logo.tif", package="terra")))
# Calculate trend slope with p-value and confidence level(s)
# ("slope","intercept", "p.value","z.value", "LCI","UCI","tau")
k <- raster.kendall(r, method="none")
plot(k)
# }
Run the code above in your browser using DataLab