Learn R Programming

PST (version 0.94.1)

s1: Example sequence data set

Description

Example data set containing one single sequence

Usage

data(s1)

Arguments

Format

A character string representing a sequence of 27 symbols separated with '-'.

Details

A sequence object can be created with the dedicated TraMineR seqdef function. State sequence objects are the main argument for the pstree method that creates probabilistic suffix trees. See example below.

Examples

Run this code
## Loading the data
data(s1)

## Creating a state sequence object
s1.seq <- seqdef(s1)

## Building and plotting a PST
S1 <- pstree(s1.seq, L = 3)
plot(S1)

Run the code above in your browser using DataLab