powered by
produce a flextable describing a pam object. The function is only using package 'broom' that provides the data presented in the resulting flextable.
# S3 method for pam as_flextable(x, digits = 4, ...)
a pam() object
pam()
number of digits for the numeric columns
unused argument
if(require("cluster")){ dat <- as.data.frame(scale(mtcars[1:7])) cl <- pam(dat, 3) ft <- as_flextable(cl) ft }
Run the code above in your browser using DataLab