Dynamic Time Warping Algorithms
Overview
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
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'.
- 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
Documentation
- 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
Repository
Stars over time
Forks over time
Commits over time
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.
GitHub Pages site last deployed 2026-10-10
Dependencies
Installing dtw adds 1 package (1 with compiled code, 70 KB of source tarballs). Heaviest: proxy 70 KB.
Show all 18 packagesHide all 18 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.23-3Latest
- RR 4.6.0 released · 2026-04-24
- 1.23-22026-04-09 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.23-12022-09-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.22-32020-09-28 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.21-32019-09-01 · diff ↗
- 1.21-12019-08-22 · diff ↗ ·
removed 2 exports
triangleFixing, tri.ineq.showadded 2 exports
is.dtw, is.stepPattern - RR 3.6.0 released · 2019-04-26
- 1.20-1
- RR 3.5.0 released · 2018-04-23
Show 33 earlier eventsHide 33 earlier events
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.18-12015-09-01 · diff ↗
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 1.17-1
- 1.16
- RR 3.0.0 released · 2013-04-03
- 1.152012-08-22 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 1.14-32012-01-15 · diff ↗
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- 1.14-12009-08-14 · diff ↗
- 1.13-12009-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 - RR 2.9.0 released · 2009-04-17
- 1.12-52009-01-07 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 1.12-32008-09-28 · diff ↗
- 1.9-12008-06-20 · diff ↗
- 1.6-22008-05-30 · diff ↗
- RR 2.7.0 released · 2008-04-22
- 1.5-32008-02-22 · diff ↗
- 1.4-32008-01-09 · diff ↗
- 1.2-12007-12-31 · diff ↗
- 1.0-22007-12-12 · diff ↗
- 0.4-22007-12-11 · diff ↗
- 0.3-12007-12-07 · diff ↗
- 0.1-22007-12-02
- RR 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
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.
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.