data_to_stslist: Transform TraMineR's state sequence object to data.table and...

View source: R/stslist_to_data.R

data_to_stslistR Documentation

Transform TraMineR's state sequence object to data.table and vice versa

Description

Transform TraMineR's state sequence object to data.table and vice versa

Usage

data_to_stslist(x, id, time, responses, seqdef_args = NULL, ...)

stslist_to_data(x, id, time, responses, ...)

Arguments

x

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.

id

A character string specifying the id variable. Ignored if x is NHMM.

time

A character string specifying the time variable. Ignored if x is NHMM.

responses

A character vector specifying the name(s) of the response variable(s). Ignored if x is NHMM.

seqdef_args

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


seqHMM documentation built on June 8, 2025, 10:16 a.m.