Import behavioral sequences (output from classifier) to matrix format
import_behavioral_seqs_to_matrix.Rd
Imports behavioral sequence data from a set of csv files and converts them to
matrix format matching the xs
and ys
matrices used in the cocomo
library
Value
Returns a list containing out$behavs
, a matrix where out$behavs[i,t]
gives the behavior of
individual i
(correspoding to the row in ids
at time t
(corresponding to the index in timestamps
)
In this matrix, the behavior is represented as an integer value (for quicker processing). The second item
in the list, out$behavs_key
is a data frame with columns behav
(the behavior as a string) and int_value
(the correspoding integer value associated with that behavior in the out$behavs
matrix)