Skip to content

get_sequence_length_summary()

get_sequence_length_summary() returns descriptive summary statistics for sequence lengths.

Function Usage

python
from sequenzo import get_sequence_length_summary
result = get_sequence_length_summary(seqdata, with_missing=True)

Entry Parameters

ParameterRequiredTypeDescription
seqdataSequenceDataInput sequence dataset.
with_missingboolInclude missing positions when computing lengths.

What It Does

  • Computes sequence lengths.
  • Builds a one-row summary table with count, mean, median, min, q1, q3, max.

Examples

python
from sequenzo import get_sequence_length_summary

summary = get_sequence_length_summary(seqdata, with_missing=True)
print(summary)

R Counterpart

  • Closest TraMineR function(s): seqlength (often summarized with summary(...) in R workflows)
  • Mapping note: Sequenzo first computes sequence lengths with seqlength-style logic, then returns a one-row summary table (count, mean, median, min, q1, q3, max).

Authors

Code: Yuqi Liang

Documentation: Yuqi Liang