binarize

0th

Percentile

Binarize a data frame into a super-indicator matrix

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

Aliases
  • binarize
Examples
## Not run: 
#   # load insurance cars dataset
#   data(insurance)
# 
#   # super-indicator matrix of binary data
#   bin_insure = binarize(insurance[,-1])
#   head(bin_insure)
#   ## End(Not run)
Documentation reproduced from package DiscriMiner, version 0.1-29, License: GPL-3

Community examples

Looks like there are no examples yet.