tidy_catdesc: Tidy Catdesc

Description Usage Arguments Value Examples

Description

Uses FactoMineR::catdesc function to describe the categories of one factor by categorical variables and/or by quantitative variables

Usage

1
tidy_catdesc(df, cluster)

Arguments

df

data frame to analyse

cluster

cluster column name

Value

list object

Examples

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()

HanjoStudy/quotidieR documentation built on May 5, 2019, 6:13 p.m.