R/as.data.frame.mefa.R

Defines functions as.data.frame.mefa

Documented in as.data.frame.mefa

as.data.frame.mefa <-
function(x, ..., fun, name, make.unique = FALSE)
{
    if (!inherits(x, "mefa"))
        stop("'x' must be of class mefa")
    if (missing(fun))
        stop("'fun' argument is missing")
    if (!is.function(fun))
        stop("'fun' argument must be a function")
    fun <- match.fun(fun)
    fun(x, name, make.unique, ...)
}

Try the mefa package in your browser

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

mefa documentation built on Oct. 7, 2021, 9:11 a.m.