R/fitted.radfit.R

`fitted.radfit` <-
    function(object, ...)
{
    out <- sapply(object$models, fitted)
    if (!length(object$y))
        out <- numeric(length(object$models))
    if (length(object$y) <= 1) 
        out <- structure(as.vector(out), dim = c(1, length(object$models)),
                         dimnames = list(names(object$y), names(object$models)))
    out
}

`fitted.radfit.frame` <-
    function(object, ...)
{
    lapply(object, fitted, ...)
}

Try the vegan package in your browser

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

vegan documentation built on May 2, 2019, 5:51 p.m.