Skip to content
Prev 377537 / 398502 Next

TrendRaster function

Dear all,

I am trying to run the codes of "greenbrown" package for detection in
raster time serie.

However the error below reported occurs.

#####
library(greenbrown)
data(ndvimap)
ndvimap
plot(ndvimap,8)

# calculate trend: annual aggregation method
AATmap <- TrendRaster(ndvimap$X1982.01.01, start=c(1982, 1), freq=12,
method="AAT", breaks=1)

Error in .calcTest(x[1:5], fun, na.rm, forcefun, forceapply) :
  cannot use this function
############

Could anyone help me to solve it?

Thank you,

Jackson