R/getTotal.R

Defines functions getTotal

Documented in getTotal

getTotal <-
function(x, ...)
{
    if (!inherits(x,"estimateMales"))
        stop("x is not of class estimateMales")
    glu <- x[[1]]
    for (i in 2:5)
        glu <- glu+x[[i]]
    return(glu)
}
ClementCalenge/caperpyogm documentation built on Sept. 14, 2021, 4:14 p.m.