GenerateRegularNonDailyTS: GenerateRegularNonDailyTS

View source: R/GenerateRegularNonDailyTS.R

GenerateRegularNonDailyTSR Documentation

GenerateRegularNonDailyTS

Description

Generates a non daily regular time series out of an non-daily irregular time series.

Usage

GenerateRegularNonDailyTS(Datavec,TimeChar,TimeResolutionBegin='secs',

TimeResolutionEnd='mins',Minutes=1,PlotIt=FALSE,

formating="(%y-%m-%d %H:%M:%S)",

tz='UTC')

Arguments

Datavec

[1:n] numerical data vector

TimeChar

[1:n] Time, a chron object or a POSIXlt object or a character vector, Devices sepcific time, if not chron object, please adjust format neceassry It hast to be convertible to character

TimeResolutionBegin

'secs','mins','hours' but not 'days'

TimeResolutionEnd

'secs','mins','hours' but not 'days'

Minutes

timedifference between two points in time in minutes

PlotIt

TRUE: plotting, FALSE: no plots

formating

default="(%y-%m-%d %H:%M:%S)", else check strptime function

tz

sometimes durations and time difference cannot be calculated if timezone is not chosen, default: 'UTC'

Details

Irregular time-series objects are scalar or vector valued time series indexed by a time-stamp of class POSIXlt used to represent irregularly temporal-spaced measurements. For daily time see please GenerateRegularDailyTS

Value

Regular TS of equidistance as a zoo object

Author(s)

Michael Thrun

References

...

See Also

GenerateRegularDailyTS


Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.