R/fitted.radfit.R

Defines functions `fitted.radfit.frame` `fitted.radfit`

`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 Sept. 11, 2024, 7:57 p.m.