Takes a time series and turns it into a time series oriented object that can be used for summary and graphing functions in the simts
package.
gts(
data,
start = 0,
end = NULL,
freq = 1,
unit_ts = NULL,
unit_time = NULL,
name_ts = NULL,
name_time = NULL,
data_name = NULL,
Time = NULL,
time_format = NULL
)
A one-column matrix
, data.frame
, or a numeric vector
.
A numeric
that provides the time of the first observation.
A numeric
that provides the time of the last observation.
A numeric
that provides the rate/frequency at which the time series is sampled. The default value is 1.
A string
that contains the unit of measure of the time series. The default value is NULL
.
A string
that contains the unit of measure of the time. The default value is NULL
.
A string
that provides an identifier for the time series data. Default value is NULL
.
A string
that provides an identifier for the time. Default value is NULL
.
A string
that contains the name of the time series data.
A numeric or character vector
containing the times of observations. Default value is NULL
. See x
object in as.Date
function.
A string
specifiying the format of 'Time'. If not provided, 'Time' is assumed to be all integers. Default value is NULL
. See format
argument in as.Date
function.
A gts
object