gts | R Documentation |
Setups a time series oriented object that works well with graphing and summary utilities
gts(data, start = 0, end = NULL, freq = 1, unit = NULL, name = NULL)
data |
A one-column |
start |
A |
end |
A |
freq |
A |
unit |
A |
name |
A |
A gts
object with the following attributes:
The time of the first observation
The time of the last observation
Numeric representation of frequency
String representation of the unit
Name of the dataset
JJB, Wenchao
m = data.frame(rnorm(50)) x = gts(m, unit = 'sec', name = 'example') x plot(x) x = gen_gts(50, WN(sigma2 = 1)) x = gts(x, freq = 100, unit = 'sec') plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.