state_frequencies() counts how often each state occurs across all
trajectories, and returns one row per state, most frequent first.
Missing values are not counted.
Arguments
- data
The trajectories: a list of state vectors, a data frame or character matrix with one row per trajectory and one column per time point, a
tnamodel or anetobjectbuilt from sequences. A data frame needs position columns named as a numbered run (T1,T2, ...); any other frame, a one-hot or association network and a 0/1 matrix raise an error of classnestimate_bad_input.