fixTimestamps: Adjusts timestamps back by one day.

View source: R/timeSeriesContainers.R

fixTimestampsR Documentation

Adjusts timestamps back by one day.

Description

Used to convert daily data's 24:00 timestamps back to proper date.

Usage

fixTimestamps(ts, n = -24 * 60 * 60)

Arguments

n

seconds to adjust timestamp by, defaults to -24*60*60, e.g. 1 day.

Details

This should be fixed by passing "offsetByInterval" to the 'tsc.to.xts' function as that is more robust to timesteps other than daily.

Value

xts with timestamps adjusted back by n

Note

- this should be automated in future version by checking if the TSC's type allows 24:00 timestamps


eheisman/dssrip documentation built on Feb. 10, 2024, 2:40 p.m.