Skip to content

Feature-Based Clustering of Longitudinal Trajectories

0packages depend
8.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Identifies clusters of individual longitudinal trajectories. In the spirit of Leffondre et al. (2004), the procedure involves identifying each trajectory to a point in the space of measures. In this context, a measure is a quantity meant to capture a certain characteristic feature of the trajectory. The points in the space of measures are then clustered using a version of the Spectral Clustering algorithm.

Changes in 3.1.0
  • Changed the eigensolver from eigen to eigs_sym (package RSpectra) to speed up trajClusters().
  • Fixed a small bug that occurred in trajMeasures when ID=FALSE and some trajectories have less than 3 observations.
  • Made substantial changes to the trajdata data set.
  • Fixed a mistake in the trajReduced() function that caused it to output the wrong number of clusters in certain situations.
  • Fixed labeling of the columns in the fuzzy.partition component of trajClusters().
  • In the scatterplots() function, the title of the plots is more informative.
  • To facilitate interpretation, the summary() function, as it applies to the output of the trajClusters() function, now includes a top_p argument which identifies, for each cluster, the top_p measures which are most extreme.
  • The plot() function now additionally displays the cluster medians of each standardized measure.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.1.0
READMEYes · 83 wordsVignettesNoNEWSYes · 100% structured · mentions 3.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
6 (1 internal)includes a package overview page
Examples that run
0%4 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
50%
Help pages citing references
50%

Downloads

8.1K
CRAN downloads in the past year
Rank #4,643 · ~22/day · ~675/mo
Daily download trend is not available in this view yet.
61630 days
1.8K90 days
8.1K1 year
Compare downloads with other packages →
Also on101 r2u3 autocran

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing traj adds 17 packages (14 with compiled code, 14 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.

Depends (1)
R >= 3.5.0
Imports (8)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Author, Maintainer since 2.0.0 (2023) · added in 2.0.0
Contributor · added in 3.1.0
Contributor · added in 3.1.0
Contributor · added in 3.1.0
Contributor

Previously maintained by Gillis Delmas TCHOUANGUE DINKOU (1.3 to 1.3.1) and Dan Vatnik (1.0 to 1.2).

Listed in earlier versions (1)
Gillis Delmas Tchouangue Dinkou
no longer listed · 1.3 to 3.0.1
Releases (13)

Pick two releases to compare their code metrics.

  • 3.1.0Latest
    record
    2026-09-08 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 3.0.1
    record
    2026-01-28 · diff ↗
  • 3.0.0
    record
    2026-01-28 · diff ↗ ·
    removed 4 exports
    Step1Measures, Step2Selection, Step3Clusters, critplot
    added 4 exports
    CVIplot, trajClusters, trajMeasures, trajReduce
  • R
    R 4.5.0 released · 2025-04-11
  • 2.2.1
    record
    2025-02-02 · diff ↗ ·
    added 2 exports
    critplot, scatterplots
  • 2.2.0
    record
    2024-07-05 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.1.0
    record
    2024-03-28 · diff ↗
  • 2.0.1
    record
    2023-12-07 · diff ↗
  • 2.0.0
    record
    2023-12-04 · diff ↗ ·
    removed 8 exports
    step1measures, step2factors, step3clusters, wrapperTraj, plotMedTraj, plotMeanTraj, plotBoxplotTraj, plotCombTraj
    added 3 exports
    Step1Measures, Step2Selection, Step3Clusters
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.1
    record
    2023-04-12 · diff ↗
  • 1.3
    record
    2023-01-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
Show 10 earlier eventsHide 10 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2
    record
    2015-01-13 · diff ↗
  • 1.1
    record
    2014-12-01 · diff ↗
  • 1.0
    record
    2014-10-22
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2014-10-22
Total releases
13 / 12 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-2 in 1.3
Minimum R
≥ 3.5.0
Bundled data
6.4 KB / 1 file
Download size
38 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("traj")
Boulanger, L., Gillis Delmas, Jean-Benoit Bergeron, Tchouangue Dinkou, Sylvestre, M., & Vatnik, D. (2026). traj: Feature-Based Clustering of Longitudinal Trajectories (Version 3.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.traj

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.

APA

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

From data release v2026-10-21, 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