Top-Down Time Ratio Segmentation for Coordinate Trajectories
Overview
Data collected on movement behavior is often in the form of time- stamped latitude/longitude coordinates sampled from the underlying movement behavior. These data can be compressed into a set of segments via the Top- Down Time Ratio Segmentation method described in Meratnia and de By (2004) doi:10.1007/978-3-540-24741-8_44 which, with some loss of information, can both reduce the size of the data as well as provide corrective smoothing mechanisms to help reduce the impact of measurement error. This is an improvement on the well-known Douglas-Peucker algorithm for segmentation that operates not on the basis of perpendicular distances. Top-Down Time Ratio segmentation allows for disparate sampling time intervals by calculating the distance between locations and segments with respect to time. Provided a trajectory with timestamps, tdtr() returns a set of straight- line segments that can represent the full trajectory. McCool, Lugtig, and Schouten (2022) doi:10.1007/s11116-022-10328-2 describe this method as implemented here in more detail.
Install
Health
NOTERd filesr-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, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) getSegsExtra.Rd:14: Lost braces
14 | \item{data}{data.table returned from function /code{tdtr}}
| ^- NOTE13 NOTE2026-06-08
- ERROR12 NOTE, 1 ERROR2026-06-07
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 11 (2 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 50%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing topdowntimeratio adds 7 packages (5 with compiled code, 7.6 MB of source tarballs). Heaviest: data.table 5.7 MB, geodist 790 KB, lubridate 420 KB.
Code & Tests
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.0Latest2022-09-22 · current release
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-09-22
- Total releases
- 1 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1
- Download size
- 29 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("topdowntimeratio")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.