Learn R Programming

flextable (version 0.9.11)

as_flextable.compact_summary: Transform a 'compact_summary' object into a flextable

Description

compact_summary objects can be transformed into a flextable with method as_flextable().

Numeric columns are formatted with formatC() using the digits value stored in the object and the current flextable defaults for big.mark and decimal.mark.

Usage

# S3 method for compact_summary
as_flextable(x, ...)

Value

A flextable() object.

Arguments

x

A compact_summary object produced by compact_summary().

...

unused arguments.

See Also

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.summarizor(), as_flextable.table(), as_flextable.tabular(), as_flextable.tabulator(), as_flextable.xtable(), compact_summary()

Examples

Run this code
z <- compact_summary(iris, show_type = TRUE, show_na = TRUE)
as_flextable(z)

Run the code above in your browser using DataLab