Get and Set Time stamps of a 'timeSeries'
Functions and methods extracting and modifying positions of 'timeSeries' objects.
getTime(x) setTime(x) <- value ## S4 method for signature 'timeSeries' time(x, ...) ## S3 replacement method for class 'timeSeries' time(x) <- value
value |
a valid value for the component of |
x |
an object of class |
... |
optional arguments passed to other methods. |
Returns a 'timeDate' object.
## Create Dummy timeSeries - X <- timeSeries(matrix(rnorm(24), 12), timeCalendar()) ## Return Series Positions - getTime(X) time(X) ## Add / Subtract one Day from X setTime(X) <- time(X) - 24*3600 # sec X time(X) <- time(X) + 24*3600 # sec X
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.