参数:seqdata
a sequence object created with the seqdef function.
序列创建的对象seqdef功能。
Details
详细信息----------Details----------
The length of a sequence is computed by eliminating the missing values at the end (right) and counting the number of states or events. The seqlength function returns a vector containing the length of each sequence in the sequence object given as argument.
序列的长度的计算方法是消除丢失的值在年底(右)和计数的状态或事件的数量。 seqlength函数返回序列中的对象作为参数给定一个向量,包含每个序列的长度。
实例----------Examples----------
## Loading the 'famform' example data set[#加载的“famform例如数据集]
data(famform)
## Defining a sequence object with the 'famform' data set[#定义一个序列对象的“famform数据集]
ff.seq <- seqdef(famform)
## Retrieving the length of the first 10 sequences [#检索的第一个10个序列的长度]
## in the ff.seq sequence object[#中的ff.seq的序列对象]
seqlength(ff.seq)