View source: R/featurematrix.R
tsfeatures | R Documentation |
tsfeatures
computes a matrix of time series features from a list of time series
tsfeatures(
tslist,
features = c("frequency", "stl_features", "entropy", "acf_features"),
scale = TRUE,
trim = FALSE,
trim_amount = 0.1,
parallel = FALSE,
multiprocess = future::multisession,
na.action = na.pass,
...
)
tslist |
a list of univariate time series, each of class |
features |
a vector of function names which return numeric vectors of features. All features returned by these functions must be named if they return more than one feature. Existing functions from installed packages may be used, but the package must be loaded first. Functions must return a result for all time series, even if it is just NA. |
scale |
if |
trim |
if |
trim_amount |
Default level of trimming if |
parallel |
If TRUE, multiple cores (or multiple sessions) will be used. This only speeds things up when there are a large number of time series. |
multiprocess |
The function from the |
na.action |
A function to handle missing values. Use |
... |
Other arguments get passed to the feature functions. |
A feature matrix (in the form of a tibble) with each row corresponding to one time series from tslist, and each column being a feature.
Rob J Hyndman
mylist <- list(sunspot.year, WWWusage, AirPassengers, USAccDeaths)
tsfeatures(mylist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.