gts | R Documentation |
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
)
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 |
A gts
object
James Balamuta and Wenchao Yang
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.