Returns endpoint indexes from a 'timeDate' object.
.endpoints(x, on = c("months", "years", "quarters", "weeks", "days", "hours", "minutes", "seconds"), k=1)
the periods endpoints to find as a character string.
along every k-th element.
endpoints returns an integer vector corresponding to the last
observation in each period specified by
on, with a zero added
to the beginning of the vector, and the index of the last observation
x at the end.
returns an intege vector of endpoints beginning with 0 and ending
with the a value equal to the length of the
Jeff Ryan, modified by Diethelm Wuertz for
## endpoints - # Weekly Endpoints: .endpoints(timeCalendar(), on="w")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.