powered by
produce a flextable describing a kmeans object. The function is only using package 'broom' that provides the data presented in the resulting flextable.
# S3 method for kmeans as_flextable(x, digits = 4, ...)
a kmeans() object
kmeans()
number of digits for the numeric columns
unused argument
Other as_flextable methods: as_flextable.data.frame(), as_flextable.glm(), as_flextable.grouped_data(), as_flextable.htest(), as_flextable.lm(), as_flextable.merMod(), as_flextable.pam(), as_flextable.summarizor(), as_flextable.tabulator(), as_flextable.xtable(), as_flextable()
as_flextable.data.frame()
as_flextable.glm()
as_flextable.grouped_data()
as_flextable.htest()
as_flextable.lm()
as_flextable.merMod()
as_flextable.pam()
as_flextable.summarizor()
as_flextable.tabulator()
as_flextable.xtable()
as_flextable()
if(require("stats")){ cl <- kmeans(scale(mtcars[1:7]), 5) ft <- as_flextable(cl) ft }
Run the code above in your browser using DataLab