[RS-ecology] Issues running bfast

Natalia Quinteros natalia.l.quinteros.c at gmail.com
Mon Mar 6 18:28:35 CET 2017


Hi List,

I was doing the time series excersise of the book and I run into a problem:

So this is my script:

f_bfm <- function(x) {x <- ts(evi, start= c(2003, 1),frequency =46)
  bfm <- bfastmonitor(data = x, start = c(2010, 1))
  return(cbind(bfm$breakpoint, bfm$magnitude))
}

rbfm <- calc(evi, fun = function(x){
  t(apply(x,1,f_bfm))
})

When I run rbfm I receive this error:

Error in (function (classes, fdef, mtable)  :
  unable to find an inherited method for function ‘calc’ for signature
‘"ts", "function"’

So, where is calc coming from? Is it coming from the package raster? Or
what is the problem here?

Thanks.


Natalia L Quinteros Casaverde
Ph.D Student
Remote Sensing and Ecosystems Lab
EEB - Biology
City University of New York &
Graduate Center
CUNY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20170306/32610c2b/attachment.html>


More information about the RS-ecology mailing list