Skip to content
Back to skills

Feasts

ASecurity

R feasts package for time series features. Use for extracting features and visualizing time series.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 4, 2026
data

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill feasts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feasts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feasts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-feasts/badge)](https://www.skillsdirectory.com/skills/leolin990405-feasts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: feasts
description: R feasts package for time series features. Use for extracting features and visualizing time series.
---

# feasts

Feature extraction and statistics for time series.

## Setup

```r
library(feasts)
library(tsibble)
library(dplyr)

# Convert to tsibble
ts_data <- as_tsibble(data, index = date)
```

## Decomposition

```r
# STL decomposition
ts_data %>%
  model(stl = STL(value)) %>%
  components() %>%
  autoplot()

# Classical decomposition
ts_data %>%
  model(classical = classical_decomposition(value)) %>%
  components()

# X11 decomposition
ts_data %>%
  model(x11 = X_13ARIMA_SEATS(value ~ x11())) %>%
  components()
```

## ACF/PACF

```r
# ACF plot
ts_data %>%
  ACF(value) %>%
  autoplot()

# PACF plot
ts_data %>%
  PACF(value) %>%
  autoplot()

# Combined
ts_data %>%
  gg_tsdisplay(value, plot_type = "partial")
```

## Seasonal Plots

```r
# Seasonal plot
ts_data %>%
  gg_season(value)

# Subseries plot
ts_data %>%
  gg_subseries(value)

# Lag plot
ts_data %>%
  gg_lag(value, lags = 1:12)
```

## Features

```r
# Extract features
ts_data %>%
  features(value, feature_set(pkgs = "feasts"))

# Specific features
ts_data %>%
  features(value, list(
    mean = mean,
    sd = sd,
    acf1 = ~ ACF(.x, lag_max = 1)$acf
  ))

# STL features
ts_data %>%
  features(value, feat_stl)

# ACF features
ts_data %>%
  features(value, feat_acf)

# Spectral features
ts_data %>%
  features(value, feat_spectral)
```

## Unit Root Tests

```r
# KPSS test
ts_data %>%
  features(value, unitroot_kpss)

# ADF test
ts_data %>%
  features(value, unitroot_ndiffs)

# Seasonal differences needed
ts_data %>%
  features(value, unitroot_nsdiffs)
```

## Guerrero Lambda

```r
# Find optimal Box-Cox lambda
ts_data %>%
  features(value, guerrero)
```

## Feature Comparison

```r
# Compare multiple series
ts_data %>%
  group_by(series) %>%
  features(value, feature_set(pkgs = "feasts")) %>%
  select(series, trend_strength, seasonal_strength_year)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.