cdt: Complete disjunctive table

View source: R/train.R

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


aweSOM documentation built on Aug. 30, 2022, 5:05 p.m.