R/summary.compareGroups.R

summary.compareGroups <-
function(object, ...) {
  if(!inherits(object, "compareGroups"))
    stop("'object' must be of class 'compareGroups'")
  ans <- lapply(object, FUN = summ.i)
  attr(ans,"yname")<-attr(object,"yname")
  attr(ans,"groups")<-attr(object,"groups")
  class(ans) <- "summary.compareGroups"
  ans
}

Try the compareGroups package in your browser

Any scripts or data that you put into this service are public.

compareGroups documentation built on May 27, 2019, 5:01 p.m.