Description Usage Arguments Value Examples
View source: R/UnivariateFactor.R
Create a cross table between a cluster variable and a selected categorical variable.
1 | contingency(object, var)
|
object |
An object of class ccdata |
var |
A data vector of an active categorical variable |
A cross table between two variables. The same table with margins and sum The table with percentages by lines Number of lines (i.e. number of clusters) Number of columns (i.e. number of modes in the other variables)
1 2 3 4 | data(BankCustomer)
obj <- Dataset(BankCustomer, BankCustomer$Cluster)
table <- contingency(obj, BankCustomer$profession)
effectiveTable <- table[[2]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.