seqlength | R Documentation |
Returns the length of sequences.
seqlength(seqdata, with.missing=TRUE)
seqdata |
a sequence object created with the |
with.missing |
logical: should non-void missing values be treated as a regular state?
Default is |
The length of a sequence is computed by counting its number of non void elements, i.e. including non-void missing values. The seqlength
function returns a vector containing the length of each sequence in the provided sequence object.
Alexis Gabadinho and Gilbert Ritschard
seqlength.align
## Loading the 'famform' example data set
data(famform)
## Defining a sequence object with the 'famform' data set
ff.seq <- seqdef(famform)
## Retrieving the length of the sequences
## in the ff.seq sequence object
seqlength(ff.seq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.