cdt {aweSOM}R Documentation

Complete disjunctive table

Description

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).

Usage

cdt(x)

Arguments

x

data.frame on which the table is computed. All columns will be treated as factors.

Value

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.


[Package aweSOM version 1.3 Index]