Learn R Programming

Rmixmod (version 2.1.10)

nbFactorFromData: Get the number of modalities for each column of a categorical data set

Description

Get the number of modalities for each column of a categorical data set

Usage

nbFactorFromData(x)

Value

a vector containing the number of modalities for each column

Arguments

x

a vector or a matrix or a data frame containing factors