R/count-item-transitions.R
count_item_transitions.RdApply [count_transitions()] to each named item shared by pre-test and post-test data. The response-cell schema is inferred after applying `na_as`.
Data frame containing one pre-test item per column.
Data frame containing the corresponding post-test items.
Must be empty. Its presence requires optional arguments to be named.
Optional logical vector selecting observations to count.
Whether to append an `aggregate` row containing column sums across items.
Classification of `NA` responses: `"dk"` treats them as observed don't-know responses and `"missing"` treats them as structural missingness.
How to handle structural missingness: `"omit"` excludes incomplete pairs and `"error"` rejects them.
A visible integer matrix with items in rows and inferred transition cells in columns.