Learn R Programming

⚠️There's a newer version (2.2-13) of this package.Take me there.

TraMineR (version 1.0)

Sequences and trajectories mining for social scientists

Description

This package is intended for sequence manipulation, description and data mining in the field of social sciences. In this field, sequences are sets of states or events describing life histories, for example family formation histories. It provides tools for translating sequences from one format to another, statistical functions for describing sequences and methods for computing distances between sequences using several metrics like optimal matching and some other metrics proposed by C. Elzinga.

Copy Link

Version

Install

install.packages('TraMineR')

Monthly Downloads

2,672

Version

1.0

License

GPL (>= 2)

Maintainer

Alexis Gabadinho

Last Published

December 14th, 2025

Functions in TraMineR (1.0)

seqsep

Adds separators to sequences stored as character string.
TraMineR-internal

Internal TraMineR functions
seqstatl

List of distinct states or events (alphabet) for a sequence data set.
seqmpos

Number of matching positions between two sequences.
seqetm

Creating event transition matrix
seqecreate

Create event sequence objects.
seqsubm

Create a substitution-cost matrix
seqdplot

Graphic presenting the states frequencies
seqefsub

Searching for frequent subsequences
seqsubsn

Number of distinct subsequences in a sequence.
seqdef

Create a sequence object
seqecmpgroup

Identifying discriminating subsequences
seqdss

Extract distinct states sequence from a sequence object.
seqfpos

Search for the first occurrence of a given element in a sequence
seqlength

Sequence length
seqeid

Retrieve id of an event sequence object.
actcal

Example data set: Activity calendar from the Swiss Household Panel
seqfcheck

Check if sequences are in compressed format.
seqstatd

States frequency table and entropy
seqfplot

Graphic presenting the frequency of sequences
famform

Example sequences of family formation
seqdecomp

Convert a character string into a vector of states or events.
seqeapplysub

Applying Subsequences to Event Sequences
seqient

Sequence entropy
seqdist

Compute distances between sequences
seqtab

Sequences frequency table
seqconc

Concatenate vectors of states or events into a character string.
seqdur

Extracts states durations from a sequence object.
read.tda.mdist

Read a distance matrix produced by TDA.
seqtrate

Transition rates between states.
seqpm

Find patterns in sequences
seqefplot

Plot frequencies of subsequences
seqelength

Length of event sequences
seqnum

Translate a sequence object's alphabet into numerical alphabet, ranging 0-(nbstates-1).
seqecontain

Event sequence contain event
seqdim

Returns the dimension of a set of sequences
biofam

Example data set: Family life states from the Swiss Household Panel retrospective biographical survey
seqLCP

Longest common prefix of two sequences.
actcal.tse

Example data set: Activity calendar from the Swiss Household Panel (time stamped event format)
str.seqe

String representation of sequence object
seqistatd

States frequency for each individual sequence
seqST

Sequences turbulence
seqformat

Translation between sequence formats.
seqlegend

Plots a legend for the states in a sequence object
alphabet

Retrieve the alphabet of a sequence object
seqiplot

Visualization of individual sequences.
seqdcenter

Compute distance to center of a group
is.seqe

Event sequences object