R/as_matrix.R

Defines functions as.matrix.weights_matrix

Documented in as.matrix.weights_matrix

#' Coerce a `weights_matrix` class object into a `matrix` class object
#'
#' @param x A `weights_matrix` class object.
#' @param ... Additional parameter passed to `as.matrix()`.
#' @return A `matrix` and `array` class object.
#' @export
as.matrix.weights_matrix <- function(x,
                                     ...) {
    class(x) <- c("matrix", "array")
    return(x)
}

Try the metasnf package in your browser

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

metasnf documentation built on April 3, 2025, 5:40 p.m.