flextable (version 0.5.11)

as_flextable.htest: tabular summary for htest object

Description

produce a flextable describing an object oof class htest.

Usage

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

Arguments

x

htest object

...

unused argument

Illustrations

See Also

Other as_flextable methods: as_flextable.glm(), as_flextable.grouped_data(), as_flextable.lm(), as_flextable.xtable(), as_flextable()

Examples

Run this code
# NOT RUN {
if(require("stats")){
  M <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))
  dimnames(M) <- list(gender = c("F", "M"),
  party = c("Democrat","Independent", "Republican"))
  ft_1 <- as_flextable(chisq.test(M))
  ft_1
}
# }

Run the code above in your browser using DataLab