seqconc: Concatenate vectors of states or events into a character string
Description
Concatenate vectors of states or events into a character string. In the string, each state is separated by 'sep'. The void elements in the input sequences are eliminated.
the list of columns containing the sequences. Defaut to NULL, ie all the columns. Whether the sequences are in the compressed (character strings) or extended format is automatically detected by counting the number of columns.
sep
the character used as separator. By default, "-".
vname
an optional name for the variable containing the sequences. By default, "Sequence".
void
the code used for void elements appearing in the sequences (see Gabadinho et al. (2008) for more details on missing values and void elements in sequences). Default to NA.
Value
a vector of character strings, one for each row in the input data.
encoding
latin1
References
Gabadinho, A., G. Ritschard, M. Studer and N. S. M�ller (2008). Mining Sequence Data in R with the TraMineR package: A user's guide. Department of Econometrics and Laboratory of Demography, University of Geneva.