seqecontain(TraMineR)
seqecontain()所属R语言包:TraMineR
Check if sequence contains events
如果序列包含事件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Check if a sequence or a subsequence contains given events
检查,如果一个序列或子序列包含给定的事件
用法----------Usage----------
seqecontain(seq, eventList, exclude = FALSE)
参数----------Arguments----------
参数:seq
A event sequence object (seqelist) or a an event subsequence object (subseqelist)
一个事件序列对象(seqelist)或一个事件序列对象(subseqelist)
参数:eventList
A list of events
事件列表
参数:exclude
if TRUE the search is exclusive and returns FALSE for any subsequence containing an event that is not in eventList
如果TRUE搜索是唯一的,返回FALSE包含任何序列,是不eventList的事件
Details
详细信息----------Details----------
Checks, for each provided event sequence, if it contains one of the events in eventList. If exclude is TRUE, seqecontain looks if all events of the subsequence are in eventList.
支票,每个提供的事件序列,如果它包含在eventList的事件之一。如果exclude是TRUE,seqecontain看来,如果所有事件的子序列是在eventList。
值----------Value----------
A logical vector.
一个逻辑向量。
参见----------See Also----------
seqecreate for creating event sequence objects and seqefsub for creating event subsequence objects.
seqecreate创建事件序列对象和seqefsub创建事件序列对象。
实例----------Examples----------
data(actcal.tse)
actcal.seqe <- seqecreate(actcal.tse)
##Searching for frequent subsequences, that is appearing at least 20 times[#寻找频繁子序列,即出现至少20次]
fsubseq <- seqefsub(actcal.seqe,minSupport=20)
##looking for subsequence with FullTime[#寻找全职序列与]
seqecontain(fsubseq,c("FullTime"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|