Computes the complete disjunctive table of a set of factors, where each factor (ie categorical variable) is encoded as a set of dummy variables, one for each level (category).
cdt(x)A matrix of dummy variables, with nrow(x) rows and a
number of columns equal to the sum of numbers of levels in all the
variables of x.
data.frame on which the table is computed. All columns will
be treated as factors.