- data
[data.frame, matrix, stslist]
Sequence data in wide format (rows are sequences, columns are time points).
- type
[character(1)]
Type of pattern analysis:
"ngram": Extract contiguous n-grams.
"gapped": Discover patterns with gaps/wildcards.
"repeated": Detect repeated occurrences of the same state.
- pattern
[character(1)]
Specific pattern to search for as
a character string (e.g., "A->*->B"). If provided, type is ignored.
Supports wildcards: * (single) and ** (multi-wildcard).
- len
[integer()]
Pattern lengths to consider for
n-grams and repeated patterns (default: 2:5).
- gap
[integer()]
Gap sizes to consider for
gapped patterns (default: 1:3).
- min_support
[integer(1)]
Minimum support threshold, i.e., the
proportion of sequences that must contain a specific pattern for it to
be included (default: 0.01).
- min_count
[integer(1)]
Minimum count threshold, i.e., the
numbers of times a pattern must occur across all sequences for it to
be included (default: 2).
- start
[character(1)]
Filter patterns starting with these states.
- end
[character(1)]
Filter patterns ending with these states.
- contains
[character(1)]
Filter patterns containing these states.