Here we manipulate the tabBook results so that they match the layout of a categoricalArray, which has the benefit of already having distinct code to write it to latex.

as.ToplineCategoricalArray(questions, question_alias = NULL, labels)

Arguments

questions

A list of two or more results objects. Objects should be provided in time or wave 3, ..., wave n)

question_alias

The name of the question alias across all results sets. It must be the same in all datasets.

labels

A character vector of labels that will be displayed in the resulting crunchtabs output. Should match the number of results objects