cheat.formula <-
function(formula, data, na.action, subset, key, wrongChoice, ...){
mf <- match.call(expand.dots = FALSE)
m <- match(c("formula", "data", "na.action", "subset"), names(mf), 0L)
mf <- mf[c(1L, m)]
mf$drop.unused.levels <- TRUE
mf[[1L]] <- as.name("model.frame")
mf <- eval(mf, parent.frame())
mt <- attr(mf, "terms")
dat <- mf
result <- cheat.default(dat, key, wrongChoice, ...)
result$call <- match.call()
result$formula <- formula
result
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.