View source: R/ConvertNumerical2TSobject.R
ConvertNumerical2TSobject | R Documentation |
Converts a numerical vector or matrix to a time series object of the stats package
ConvertNumerical2TSobject(NumericVectorOrMatrix, Time,
Frequency = "days")
NumericVectorOrMatrix |
[1:n,1:d] matrix or vector with n cases and d variables |
Time |
[1:n] Time object of class |
Frequency |
either |
shortcuts because several analytic methods require ts
objects
ts
objects with [1:n,1:d]
Internal Frequency
of weekly data is estimated with 365.25/7 in the ts
function.
Michael Thrun
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
ts
tsobject=ConvertNumerical2TSobject(WeeklySalesUniformRandom$Sales,
WeeklySalesUniformRandom$Time,"weeks")
plot(tsobject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.