Description Usage Arguments Value Examples
Uses FactoMineR::catdesc function to describe the categories of one factor by categorical variables and/or by quantitative variables
1 | tidy_catdesc(df, cluster)
|
df |
data frame to analyse |
cluster |
cluster column name |
list object
1 2 3 4 5 6 7 8 9 | library(FactoMineR)
data(iris)
# Principal Component Analysis:
res.pca <- PCA(iris[,1:4], graph=FALSE)
# Clustering, auto nb of clusters:
hc <- HCPC(res.pca, nb.clust=-1)
hc$data.clust %>% tidy_catdesc(., clust)
hc %>% tidy_catdesc()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.