R/getweights.R

Defines functions getweights.default getweights

Documented in getweights getweights.default

#' Get weights from a model object
#' @param m the model object.
#' @param ... other arguments to \code{weights} or to methods.
#' @return a vector of weights.
#' @export
getweights <- function(m, ...) {UseMethod("getweights")}

#' @describeIn getweights default method
#' @export
getweights.default <- function(m, ...) {stats::weights(m, ...)}
deepfriar/gilez documentation built on Dec. 19, 2021, 10:09 p.m.