R/summary.R

#' @title Summarize one-way ANOVA
#' 
#' @description 
#' \code{summary.oneway} summarizes the results of the one-way ANOVA.
#' 
#' @details
#' This function print the ANOVA table from the linear model.
#' 
#' @param x an object of class \code{oneway}
#' @param ... additional arguments passed to the function.
#' 
#' @export
#' 
#' @return the input is returned silently
#' 
#' @author Rob Kabacoff <rkabacoff@@wesleyan.edu>
#' 
#' @examples
#' mileage <- oneway(hwy ~ class, cars)
#' summary(mileage)

summary.oneway <- function(x, ...){
  if(!inherits(x, "oneway")) stop("x must  be class 'oneway'")
  print(anova(x$anova), ...)
}
kimpham23/oneway documentation built on May 13, 2019, 12:08 p.m.