Learn R Programming

CGPfunctions (version 0.6.3)

newbroom: Tidy Tables for htest objects

Description

Produces tidy tibbles of results from htest objects. This is a vastly reduced version of the tidy.htest function from package broom

Usage

newbroom(x)

Arguments

x

An `htest` object, such as those created by [stats::cor.test()], [stats::t.test()], [stats::wilcox.test()], [stats::chisq.test()], etc.

Value

An object of class "tibble".

See Also

[stats::t.test()], [stats::oneway.test()] [stats::wilcox.test()], [stats::chisq.test()]

Examples

Run this code
# NOT RUN {
chit <- chisq.test(xtabs(Freq ~ Sex + Class, data = as.data.frame(Titanic)))
CGPfunctions:::newbroom(chit)
# }

Run the code above in your browser using DataLab