beanumber / tidychangepoint

Changepoint detection with a tidy interface
https://beanumber.github.io/tidychangepoint/
GNU General Public License v3.0
1 stars 1 forks source link

recover the time data types if possible #46

Closed beanumber closed 7 months ago

beanumber commented 7 months ago

That is, if the time indices have labels, can we use them (by default)?

library(tidychangepoint)
x <- segment(CET, method = "pelt")
#> method: pelt
plot(x)

changepoints_labels(x)
#> [1] "1713-01-01" "1715-01-01" "1967-01-01" "1969-01-01" "1988-01-01"

Created on 2024-04-04 with reprex v2.1.0

beanumber commented 7 months ago

38ddf4d should suffice for now, but we will probably need a more robust solution at some point that involves actually changing the mapping of the x-axis to Date values.