View source: R/timeSeriesContainers.R
fixTimestamps | R Documentation |
Used to convert daily data's 24:00 timestamps back to proper date.
fixTimestamps(ts, n = -24 * 60 * 60)
n |
seconds to adjust timestamp by, defaults to -24*60*60, e.g. 1 day. |
This should be fixed by passing "offsetByInterval" to the 'tsc.to.xts' function as that is more robust to timesteps other than daily.
xts with timestamps adjusted back by n
- this should be automated in future version by checking if the TSC's type allows 24:00 timestamps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.