Learn R Programming

DiscriMiner (version 0.1-22)

binarize: Binarize a data frame into a super-indicator matrix

Description

Convert a data frame with factors into a super-indicator matrix (a.k.a. complete disjunctive table from the french tableau disjonctive complete)

Usage

binarize(variables)

Arguments

variables
data frame with categorical variables (coded as factors)

Value

  • A super-indicator matrix of binary data

References

Lebart L., Piron M., Morineau A. (2006) Statistique Exploratoire Multidimensionnelle. Dunod, Paris.

See Also

easyMCA

Examples

Run this code
# load insurance cars dataset
  data(insurance)

  # super-indicator matrix of binary data
  bin_insure = binarize(insurance[,-1])
  head(bin_insure)

Run the code above in your browser using DataLab