Transform TraMineR's state sequence object to data.table and vice versa
data_to_stslist(x, id, time, responses, seqdef_args = NULL, ...)stslist_to_data(x, id, time, responses, ...)
For data_to_stslist
, a data.frame
type of object in long format,
or a model object of class nhmm
or mnhmm
.
For stslist_to_data
, an object of class stslist
or list of such objects.
A character string specifying the id variable. Ignored if x
is NHMM.
A character string specifying the time variable. Ignored if x
is NHMM.
A character vector specifying the name(s) of the response
variable(s). Ignored if x
is NHMM.
A list of additional arguments to TraMineR::seqdef()
in
case of data_to_stslist
. In case of length(responses) > 1
, a list of
lists. Ignored in stslist_to_data
.
Ignored