Nothing
#' Model in the formula object converted to a character
#'
#'
#' @param formula formula object
#' @return character. model
#'
#' @examples
#' aformula <- as.formula(medv ~ lstat)
#' astring <- string.formula(aformula)
#' print(astring)
#'
#' @importFrom stats terms
#' @export
string.formula <- function(formula) {
fterms <- as.character(formula(terms(formula)))
outc <- fterms[2]
mod.part <- fterms[3]
mod <- paste(outc, "~", mod.part)
return(mod)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.