R/tidy_chisq.R

Defines functions tidy_chisq

Documented in tidy_chisq

#' Tidiers for lists returned from chisq.test
#'
#' Tidies objects returned by the \code{\link[stats]{chisq.test}} function.
#' This function is now deprecated. Use \code{augment} method from
#' \code{broom} package
#'
#' @param x list returned by \code{chisq.test} or \code{svychisq}
#' @param ... extra arguments
#' @importFrom broom augment
#' @examples
#' test <- chisq.test(xtabs(Freq ~ Sex + Class, data = as.data.frame(Titanic)))
#' broom::augment(test)
#' @export

tidy_chisq <- function(x, ...) {
  broom::augment(x, ...)
}
larmarange/JLutils documentation built on March 24, 2023, 6:39 a.m.