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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.