View source: R/get_series_time.R
get_series_time | R Documentation |
Function will retrieve the time component of a
ts
,zoo
or xts
object. The retrieved time
will be converted into one of several possible time classes.
get_series_time(series, time_class = "Date", time_origin = NULL)
series |
Either a |
time_class |
A string that sets the class for the converted index. Acceptable values are: "Date", "POSIXct", "yearmon", "yearqtr". |
time_origin |
A character string that sets the origin/start date for calculating the internal elapsed seconds representation of the time. The default in R is January 1, 1970. |
A Date/POSIXct/yearmon/yearqtr class object
Rick Dean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.