gts {simts} | R Documentation |
Create a simts TS object using time series data
Description
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.
Usage
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
)
Arguments
data |
A one-column |
start |
A |
end |
A |
freq |
A |
unit_ts |
A |
unit_time |
A |
name_ts |
A |
name_time |
A |
data_name |
A |
Time |
A numeric or character |
time_format |
A |
Value
A gts
object
Author(s)
James Balamuta and Wenchao Yang
Examples
m = data.frame(rnorm(50))
x = gts(m, unit_time = 'sec', name_ts = 'example')
plot(x)
x = gen_gts(50, WN(sigma2 = 1))
x = gts(x, freq = 100, unit_time = 'sec')
plot(x)