R/private.R

format.percentage <- function(x, digits) {
    paste0(format(x * 100, trim=TRUE, digits=digits, scientific=FALSE), "%")
}

response.name <- function(formula, ...) {
    tt <- terms(formula, ...)
    vars <- as.character(attr(tt, "variables"))[-1]
    vars[attr(tt, "response")]
}

Try the omics package in your browser

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

omics documentation built on May 1, 2019, 8:45 p.m.