help stripe

Title

stripe -- Create a single string variable representing the sequence

Syntax

stripe varlist, GENerate(newvarname) [SYMbols(string) XT XTSPellsep(string) XTDursep(string)]

options

Required
generate(varname) names the variable in which to store the representation

Optional
symbols(string) String containing symbols to use (defaults to "ABC...")

xt Use condensed format (state/duration pairs)

xtspellsep(string) Separator between spells in condensed format, defaults to "".

xtdursep(string) Separator between state and duration in condensed format, defaults to "".

Description

stripe Create a single string variable representing a
sequence. Option symbols allows replacement of the default symbol
series (the uppercase alphabet). This makes sequences easier to view,
and enables one to use regular expressions to group sequences [M-5] regexm().

Note: Assumes sequences are represented by consecutive variables containing numeric values.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. stripe state1-state40, gen(seqstr)

. stripe state1-state40, gen(seqstr) symbols("FPun")

. stripe state1-state40, gen(xtstr) xt xtsp("/") xtdur(":")

. list seqstr if regexm(seqstr,"FFFF+.+nnnn")

. list seqstr if regexm(seqstr,"^F+n+$")