You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not useful, as the breakdates should actually tell you which year and day the break happened, rather than in which part of the time series it happened (that's already given by the observation number).
It works properly if the input is a ts object, since then datatsp is preserved. However, it is rare to run breakpoints() over a ts rather than a bfastpp()data.frame. The latter contains time as a column, which should then be preserved.
I propose to handle time better and different from the other covariates in X. If the input is ts, then decompose its input into year fractions as per bfastpp. If the input is a data.frame, make use of the time column. Add a time element to the result that holds the timestamps, either as POSIXct or year fractions.
This is a prerequisite to better plotting of breakpoints() diagnostics, as as it is it is impossible to plot the time series with correct labels, or to put the breakpoint at a particular time.
The text was updated successfully, but these errors were encountered:
At the moment, the time attribute in breakpoints() gets lost most of the time, leading to output such as:
This is not useful, as the breakdates should actually tell you which year and day the break happened, rather than in which part of the time series it happened (that's already given by the observation number).
It works properly if the input is a
ts
object, since thendatatsp
is preserved. However, it is rare to runbreakpoints()
over ats
rather than abfastpp()
data.frame
. The latter contains time as a column, which should then be preserved.I propose to handle time better and different from the other covariates in X. If the input is
ts
, then decompose its input into year fractions as perbfastpp
. If the input is adata.frame
, make use of thetime
column. Add atime
element to the result that holds the timestamps, either as POSIXct or year fractions.This is a prerequisite to better plotting of
breakpoints()
diagnostics, as as it is it is impossible to plot the time series with correct labels, or to put the breakpoint at a particular time.The text was updated successfully, but these errors were encountered: