Format transition matrix result with appropriate row and column names

format_transition_matrix(
  transition_list,
  item_names,
  include_aggregate = FALSE
)

Arguments

transition_list

list of transition vectors

item_names

item names in output row order

include_aggregate

whether to add an aggregate row

Value

formatted matrix