powered by
Computes the gaps, the minimum or maximum gap, or the span of sequences.
# S4 method for timedsequences times(x, type = c("times", "gaps", "mingap", "maxgap", "span"))
If type = "items" returns a list of vectors of events times corresponding with the elements of a sequence.
type = "items"
If type = "gaps" returns a list of vectors of time differences between consecutive elements of a sequence.
type = "gaps"
Otherwise, a vector corresponding with the elements of x.
x
an object.
a string value specifying the type of statistic.
Christian Buchta
Class sequences, timedsequences, method size, itemFrequency, timeFrequency.
sequences
timedsequences
size
itemFrequency
timeFrequency
## continue example example("timedsequences-class") ## times(z) times(z, "gaps") ## all defined times(z, "span") ## crosstab table(size = size(z), span = times(z, "span"))
Run the code above in your browser using DataLab