times-methods: Compute Time Statistics of Sequences
Description
Computes the gaps, the minimum or maximum gap, or the span of sequence.
Usage
## S3 method for class 'timedsequences':
times(x, type = c("times", "gaps", "mingap", "maxgap", "span"))
Arguments
x
an object.
type
a string value specifying the type of statistic.
Value
If type = "items" returns a list of vectors of events times
corresponding with the elements of a sequence.
If type = "gaps" returns a list of vectors of time differences
between consecutive elements of a sequence.
Otherwise, a vector corresponding with the elements of x.