Skip to content

Dynamic Time Warping Algorithms

13packages dependsuggested by 5
121.7Kdownloads / year
35.7%test coverage
8/13flavors OK

Overview

About

A comprehensive implementation of dynamic time warping (DTW) algorithms in R. DTW computes the optimal (least cumulative distance) alignment between points of two time series. Common DTW variants covered include local (slope) and global (window) constraints, subsequence matches, arbitrary distance definitions, normalizations, minimum variance matching, and so on. Provides cumulative distances, alignments, specialized plot styles, etc., as described in Giorgino (2009) doi:10.18637/jss.v031.i07.

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  dtw/man/stepPattern.Rd (.Dim: 1)
'.Dim' should be changed to 'dim'.

CRAN check page ↗

Slowest check: 2.7 min · r-devel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-06-27
  • WARNING12 OK, 1 WARNING2026-06-14
  • OK14 OK2026-04-11
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.23-3
READMENoVignettesYes · 1 · dynamicNEWSNoCitation fileYes · cites a publicationWebsiteYes
Cites a JSS article
Help pages
15 (1 internal)includes a package overview page
Examples that run
100%14 run in a plain check
Exported functions with examples
100%
Documented parameters
92%
Return-value docs
58%
Help pages citing references
40%

Also includes 1 demo script (run with demo())

Downloads

121.7K
CRAN downloads in the past year
Rank #1,248 · ~333/day · ~10.1K/mo
Daily download trend is not available in this view yet.
8K30 days
24.7K90 days
121.7K1 year
Compare downloads with other packages →
Also on3.8K r2u106 autocran7.4K conda_forge301 c2d4u

Repository

1Stars
1Forks
0Open PRs
0Releases
90Commits
1Commit identities
90 commits · Last activity 2026-10-10
Responsiveness
not measured

Stars over time

2021-04-17 · 12026-07-07 · 1
PracticesBeta

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

Checks run against github.com/dynamictimewarping/dynamictimewarping.github.io on 2026-10-18.

Continuous integration (1)
GitHub Actions
Docs source (1)

GitHub Pages site last deployed 2026-10-10

Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing dtw adds 1 package (1 with compiled code, 70 KB of source tarballs). Heaviest: proxy 70 KB.

Depends (2)
R >= 2.10.0proxy
Imports (4)
graphicsgrDevicesstatsutils
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
13direct
21indirect
Depends 3 · Imports 10
Suggested by 5
Show all 18 packagesHide all 18 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 0.1-2 (2007)
Listed in earlier versions (2)
Paolo Tormene
no longer listed · 1.0-2 to 1.12-5
with contributions from Paolo Tormene
no longer listed · 0.1-2 to 0.4-2
Releases (25)

Pick two releases to compare their code metrics.

  • 1.23-3Latest
    record
    2026-06-09 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.23-2
    record
    2026-04-09 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.23-1
    record
    2022-09-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.22-3
    record
    2020-09-28 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.21-3
    record
    2019-09-01 · diff ↗
  • 1.21-1
    record
    2019-08-22 · diff ↗ ·
    removed 2 exports
    triangleFixing, tri.ineq.show
    added 2 exports
    is.dtw, is.stepPattern
  • R
    R 3.6.0 released · 2019-04-26
  • 1.20-1
    record
    2018-05-18 · diff ↗ ·
    added 2 exports
    triangleFixing, tri.ineq.show
  • R
    R 3.5.0 released · 2018-04-23
Show 33 earlier eventsHide 33 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.18-1
    record
    2015-09-01 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 1.17-1
    record
    2013-12-11 · diff ↗ ·
    added 1 export
    countPaths
  • 1.16
    record
    2013-05-28 · diff ↗ ·
    added 1 export
    rigid
  • R
    R 3.0.0 released · 2013-04-03
  • 1.15
    record
    2012-08-22 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 1.14-3
    record
    2012-01-15 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 1.14-1
    record
    2009-08-14 · diff ↗
  • 1.13-1
    record
    2009-07-01 · diff ↗ ·
    added 42 exports
    dtw, dtwDist, dtwPlot, dtwPlotAlignment, dtwPlotDensity, dtwPlotThreeWay, dtwPlotTwoWay, noWindow, sakoeChibaWindow, slantedBandWindow, itakuraWindow, dtwWindow.plot, mvmStepPattern, rabinerJuangStepPattern, symmetric1, symmetric2, asymmetric, symmetricP0, asymmetricP0, symmetricP05, asymmetricP05, symmetricP1, asymmetricP1, symmetricP2, asymmetricP2, typeIa, typeIas, typeIb, typeIbs, typeIc and 12 more
  • R
    R 2.9.0 released · 2009-04-17
  • 1.12-5
    record
    2009-01-07 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 1.12-3
    record
    2008-09-28 · diff ↗
  • 1.9-1
    record
    2008-06-20 · diff ↗
  • 1.6-2
    record
    2008-05-30 · diff ↗
  • R
    R 2.7.0 released · 2008-04-22
  • 1.5-3
    record
    2008-02-22 · diff ↗
  • 1.4-3
    record
    2008-01-09 · diff ↗
  • 1.2-1
    record
    2007-12-31 · diff ↗
  • 1.0-2
    record
    2007-12-12 · diff ↗
  • 0.4-2
    record
    2007-12-11 · diff ↗
  • 0.3-1
    record
    2007-12-07 · diff ↗
  • 0.1-2
    record
    2007-12-02
  • R
    R 2.6.0 released · 2007-10-03

Package metadata

First published
2007-12-02
Total releases
25 / 19 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 2.10.0
Bundled data
30 KB / 2 files
Download size
742 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("dtw")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v031.i07, 10.1016/j.artmed.2008.11.007.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for dtw version 1.23-3 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy