splitmix function

splitmix

splitmix

Splits a mixed data matrix in two data sets: one with the quantitative variables and one with the qualitative variables. Here, the columns of class "integer are considered quantitative. If you want this column to be considered as qualitative, it must be of class character of factor.

splitmix(data)

Arguments

  • data: a data matrix or a data.frame with a mixture of quantitative and qualitative variables.

Returns

  • X.quanti: a data matrix containing only the quantitative variables.

  • X.quali: A data.frame containing only the qualitative variables.

Examples

data(decathlon) data.split <- splitmix(decathlon) data.split$X.quanti data.split$X.quali
  • Maintainer: Marie Chavent
  • License: GPL (>= 2.0)
  • Last published: 2017-10-23

Useful links