| as_flextable.summarizor | R Documentation |
summarizor object should be transformed into a flextable
with method as_flextable().
## S3 method for class 'summarizor'
as_flextable(x, ...)
x |
result from |
... |
arguments for |
Other as_flextable methods:
as_flextable(),
as_flextable.data.frame(),
as_flextable.gam(),
as_flextable.glm(),
as_flextable.grouped_data(),
as_flextable.htest(),
as_flextable.kmeans(),
as_flextable.lm(),
as_flextable.merMod(),
as_flextable.pam(),
as_flextable.table(),
as_flextable.tabular(),
as_flextable.tabulator(),
as_flextable.xtable()
z <- summarizor(CO2[-c(1, 4)],
by = "Treatment",
overall_label = "Overall"
)
ft_1 <- as_flextable(z, spread_first_col = TRUE)
ft_1 <- prepend_chunks(ft_1,
i = ~ is.na(variable), j = 1,
as_chunk("\t")
)
ft_1 <- autofit(ft_1)
ft_1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.