seqecontain: Check if sequence contains events

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/seqecontain.R

Description

Check if an event sequence or subsequence contains given events

Usage

1
2
seqecontain(eseq, event.list, unknown.exclude = FALSE,
  seq, eventList, exclude)

Arguments

eseq

A event sequence object (seqelist) or a an event subsequence object (subseqelist)

event.list

A list of events

unknown.exclude

if TRUE the search is exclusive and returns FALSE for any subsequence containing an event that is not in event.list

seq

Deprecated. Use eseq instead.

eventList

Deprecated. Use event.list instead.

exclude

Deprecated. Use unknown.exclude instead.

Details

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.

Value

A logical vector.

Author(s)

Matthias Studer (with Gilbert Ritschard for the help page)

See Also

seqecreate for creating event sequence objects and seqefsub for creating event subsequence objects.

Examples

1
2
3
4
5
6
7
8
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"))

TraMineR documentation built on June 20, 2017, 3:01 p.m.

Search within the TraMineR package
Search all R packages, documentation and source code