seqecontain | R Documentation |
Check if an event sequence or subsequence contains given events
seqecontain(eseq, event.list, unknown.exclude = FALSE,
seq, eventList, exclude)
eseq |
A event sequence object ( |
event.list |
A list of events |
unknown.exclude |
if |
seq |
Deprecated. Use |
eventList |
Deprecated. Use |
exclude |
Deprecated. Use |
Checks, for each provided event sequence, if it contains one of the events in event.list
.
If unknown.exclude
is TRUE
, seqecontain
looks if all events of the subsequence are in event.list
.
A logical vector.
Matthias Studer (with Gilbert Ritschard for the help page)
seqecreate
for creating event sequence objects and seqefsub
for creating event subsequence objects.
data(actcal.tse)
actcal.eseq <- seqecreate(actcal.tse)
##Searching for frequent subsequences, that is appearing at least 20 times
fsubseq <- seqefsub(actcal.eseq,min.support=20)
##looking for subsequence with FullTime
seqecontain(fsubseq,c("FullTime"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.