I don't understand why I recive an output from endpoints function, whereas I am expecting something else. I wrote a pseudo code, could someone explain the mechanism?
y1<-rep(1,times=750)
y1<-xts(y1, order.by = Sys.Date()-1:750)
endpoints(y1,'days',250)
With this code R returns 0 123 347 484 713 750. Shouldn't it return 250 500 750 ? Or how would it return those indecies? Thanks