Learn R Programming

PCAmixdata (version 3.1)

splitmix: splitmix

Description

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.

Usage

splitmix(data)

Arguments

data

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

Value

X.quanti

a data matrix containing only the quantitative variables.

X.quali

A data.frame containing only the qualitative variables.

Examples

Run this code
# NOT RUN {
data(decathlon)
data.split <- splitmix(decathlon)
data.split$X.quanti
data.split$X.quali
# }

Run the code above in your browser using DataLab