Skip to content

distantia

2.0.3

Advanced Toolset for Efficient Time Series Dissimilarity Analysis

0packages depend
4.7Kdownloads / year
72.3%test coverage
13/13checks pass

Overview

About
Maintained by Blas M. BenitoFirst published 2019-07-047 releasesCRAN page ↗GitHub ↗

Fast C++ implementation of Dynamic Time Warping for time series dissimilarity analysis, with applications in environmental monitoring and sensor data analysis, climate science, signal processing and pattern recognition, and financial data analysis. Built upon the ideas presented in Benito and Birks (2020) doi:10.1111/ecog.04895, provides tools for analyzing time series of varying lengths and structures, including irregular multivariate time series. Key features include individual variable contribution analysis, restricted permutation tests for statistical significance, and imputation of missing data via GAMs. Additionally, the package provides an ample set of tools to prepare and manage time series data.

Install

Health

CRAN checks
13OK
Slowest check: 10.9 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.12
72.3%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    12 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 927 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
1%

Downloads

4.7K
CRAN downloads in the past year
Rank #6,462 · ~13/day · ~389/mo
Daily download trend is not available in this view yet.
43630 days
1.6K90 days
4.7K1 year
Compare downloads with other packages →
Also on422 r2u31 autocran

Repository

Repository
24Stars
6Forks
0Open issues
0Open PRs
6Releases
491Commits
2Contributors
dissimilaritydynamic-time-warpinglock-steptime-series
491 commits · Last activity 2026-07-15 · 0% stars, 30d

Stars over time

2025-02-09 · 232026-07-07 · 24

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/blasbenito/distantia on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (2)
R >= 4.1doFuture
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 21,084 (56%)Rd 12,299 (33%)C++ 3,995 (11%)C 299 (1%)
Code characteristics
Cyclomatic complexity
2.0 median / 27 max
Test cases
69 / 0.12 per code line

Test coverage

Line coverage

72%

Expression

68.5%

Tests / Examples

72.3% / – ex

Functions

273 177 exported

Complexity

4.3 avg / 27 max

Call network

273 nodes / 382 edges

Loading call graph…

Lowest coverage

273 functions
FunctionCycloCoverage
color_continuous exp10%
color_discrete exp130%
distantia_boxplot exp20%
distantia_dtw_plot exp70%
f_list exp10%
momentum_boxplot exp20%

Datasets

Bundled datasets · 6
NameClassRows × ColsAlso ships in
cities_temperaturedata.frame8,420 × 3
covid_prevalencedata.frame7,092 × 3
distancesdata.frame12 × 5
eemian_pollendata.frame376 × 24
fagus_dynamicsdata.frame648 × 5
honeycomb_climatetbl_df/tbl/data.frame9,432 × 4

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.0.3Latest
    2026-05-13 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.2
    2025-02-01 · diff ↗
  • 2.0.1
    2025-01-23 · diff ↗
  • 2.0.0
    2025-01-09 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.2
    2019-10-29 · diff ↗
  • 1.0.1
    2019-08-06 · diff ↗
  • 1.0.0
    2019-07-04
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-07-04
Total releases
7 / 7 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
608 KB / 12 files
Download size
837 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →