as_disag.ts | R Documentation |
An example time series object is daily stock price growth
## S3 method for class 'ts'
as_disag(data, lags = 10, ID = "add", ...)
data |
A vector of class time series representing a response e.g. in stock data the growth |
lags |
An integer saying how many lags should be taken |
ID |
Either the name of the grouping variable or "add" which means an ID variable will be added 1:nrow() |
... |
any other arguments |
as_disag.ts
returns a dataframe that can be used with all agouti functions.
NA
data(stock_vector)
disag_data <- as_disag(data=stock_vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.