Convert a SimtablR result or spec to a flextable
Source:R/render.R, R/report.R
as_flextable.simtab_result.RdConvert a SimtablR result or spec to a flextable
Usage
as_flextable.simtab_result(x, ...)
as_flextable.simtab_spec(x, ...)
as_flextable.simtab_report(x, ...)Examples
if (requireNamespace("flextable", quietly = TRUE)) {
res <- tb(epitabl, sex, diabetes)
flextable::as_flextable(res)
}
Sex recorded for clinical assessment
No
Yes
Total
Female
517
169
686
Male
610
204
814
Total
1127
373
1500