Learn R Programming

informR (version 1.0-5)

gen.sform: Generates Sform Statistics from Event Sequences

Description

Internal function for generating sequence statistics based on limited regular expressions.

Usage

gen.sform(a, sform, olev = NULL)

Arguments

a
A character vector of events, possibly passed from gen.id. Must have attr(a,"a.uid").
sform
A regular expression representing the sequence statistic, see details
olev
a character vector, see details.

Value

A list of length(a) containing single row matrices of sufficient statistics for matches/non-matches of the S-form.

Details

This function is typically not called by the end user. Regular expressions must adhere to PERL standards and, at this time, must make use of the alphabetic event.key values in an eventlist object.

The parameter olev is a placeholder for future functionality, however can currently be used to truncate valid event types not found in the null.events values in an eventlist object. This parameter will rarely ever be non-null.