R/summary.lengths.R

summary.lengths <-
function (object, ..., zeros.rm = TRUE) {
  newlen <- object$length + 0
  if (zeros.rm & object$zeros) {
    newlen <- object$length + object$maxcens
  }
  res <- tapply(newlen, object$categories, function(p) summary(p, ...))
  class(res) <- "summary.lengths"
  return(res)
}

Try the spMC package in your browser

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

spMC documentation built on May 3, 2023, 9:13 a.m.