GDAtools (version 1.5)

getindexcat: Returns the names of the categories in a data frame

Description

Returns a vector of names corresponding the the categories in a data frame exclusively composed of categorical variables.

Usage

getindexcat(data)

Arguments

data

data frame of categorical variables

Value

Returns a character vector with the names of the categories of the variables in the data frame

Details

This function may be useful prior to a 'specific' MCA, to identify the indexes of the 'junk' categories to exclude.

See Also

speMCA, csMCA

Examples

Run this code
# NOT RUN {
data(Music)
getindexcat(Music[,1:5])
mca <- speMCA(Music[,1:5],excl=c(3,6,9,12,15))
# }

Run the code above in your browser using DataLab