R/summary.R

Defines functions summary.rvec

#' @export
summary.rvec <- function(object, ...) {
    ans <- c(Length = length(object),
             Class = class(object)[[1L]],
             Mode = mode(vctrs::field(object, "data")),
             n_draw = n_draw(object))
    class(ans) <- c("summaryDefault", "table")
    ans
}
             

Try the rvec package in your browser

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

rvec documentation built on Aug. 8, 2025, 7:29 p.m.