A Modified DTW Algorithm for Stratigraphic Time Series Alignment
Overview
A dynamic time warping (DTW) algorithm for stratigraphic alignment, translated into R from the original published 'MATLAB' code by Hay et al. (2019) doi:10.1130/G46019.1. The DTW algorithm incorporates two geologically relevant parameters (g and edge) for augmenting the typical DTW cost matrix, allowing for a range of sedimentologic and chronologic conditions to be explored, as well as the generation of an alignment library (as opposed to a single alignment solution). The g parameter relates to the relative sediment accumulation rate between the two time series records, while the edge parameter relates to the amount of total shared time between the records. Note that this algorithm is used for all DTW alignments in the Align Shiny application, detailed in Hagen et al. (in review).
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Cedric Hagen <ch0934@princeton.edu>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Cedric",
family = "Hagen",
role = c("aut", "cre"),
email = "ch0934@princeton.edu")
as necessary.- NOTE11 OK, 2 NOTE2026-09-08
- ERROR10 OK, 2 NOTE, 1 ERROR2026-09-07
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 3
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 0%
Downloads
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.1.0Latest2023-04-04 · current release
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-04-04
- Total releases
- 1 / 3 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 1.8 KB / 2 files
- Download size
- 6.0 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("align")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.