R/summary.oneway.R

Defines functions summary.oneway

Documented in summary.oneway

#' @title Summary of One Way ANOVA
#' @description  Prints summary of oneway ANOVA
#' @param x object of class \code{oneway}
#' @param ... parameters passed to print function
#' @return NULL
#' @examples
#' mileage <- oneway(hwy ~ class, cars)
#' summary(mileage)
#' @rdname summary.oneway
#' @export

summary.oneway <- function(x, ...){
  if(!inherits(x, "oneway")) stop("x must  be class 'oneway'")
  print(anova(x$anova), ...)
}
Rkabacoff/onewayAnova documentation built on Oct. 30, 2019, 10:58 p.m.