Description Usage Arguments Value Examples
Performs the necessary transformations to make a univariate time series acceptable for use with machine learning models like neural networks.
| 1 2 3 | 
| .data | A tidy data.frame/tbl | 
| .dt | Name of the column in  | 
| .y | Name of the column in  | 
| p | Number of previous observations to turn into features (think AR(p)) | 
| xreg | A character vector of column names of external regressors in  | 
| granularity | One of: second, minute, hour, day, week, month, quarter, year. If not specified, will attempt to detect. | 
| extras | Whether maltese will create new features (like day of week) | 
| extrasAsFactors | Whether to output extra features as factors or numeric (default). If TRUE, some (like day of week or month) will be ordered factors. | 
| start | Which day does the week start? "Sun"day or "Mon"day (default)? | 
A data.frame suitable for supervised learners with columns:
The date or date-time (same as dt)
The time series
The previous k-th observation
Extra features like hour of day, day of the week, month of the year, etc.
| 1 2 | data("r_enwiki", package = "maltese")
mlts <- mlts_transform(head(r_enwiki), date, pageviews)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.