tidyverts/feasts
Feature Extraction And Statistics for Time Series
What it solves
Time series data can be hard to summarise and compare. feasts gives R users a set of tools to break a time series into meaningful parts (like trend and seasonality), compute statistical summaries, and extract compact features from many series at once. This makes it easier to spot unusual series, find groups with similar behaviour, and understand what drives each series.
How it works
feasts is built on top of the tsibble package, which provides tidy temporal data structures. It offers three main kinds of tools:
- Statistics – for example, the autocorrelation function (ACF) measures how strongly a series is related to its own past values.
- Decompositions – it supports classical decomposition and STL decomposition, which split a series into trend, seasonal, and remainder components.
- Feature extraction – functions like
feat_stlcompute compact summaries (e.g. trend strength, seasonal strength, spikiness, linearity) for each series in a collection, so you can compare many series without plotting them all.
These tools integrate with the fable forecasting workflow, so they fit naturally into a tidy forecasting pipeline.
Who it’s for
R users who work with time series data, especially those already using the tidyverse, tsibble, or fable. It’s useful for analysts and data scientists who need to explore, summarise, or compare many time series efficiently.
Highlights
- Provides summary statistics like the autocorrelation function (ACF)
- Supports classical and STL decomposition to separate trend, season, and remainder
- Extracts features such as trend strength, seasonal strength, spikiness, linearity, and curvature
- Helps identify extreme or unusual time series and find clusters of similar behaviour
- Works seamlessly with tsibble and fable
- Stable and available on CRAN
Related
- Project
- Project
- Project
- Project
- Project