# Auxiliary functions
makeXY <- function(formula, data){
mf <- model.frame(formula=formula, data=data)
x <- model.matrix(attr(mf, "terms"), data=mf)
y <- model.response(mf)
list(y = y,
x = x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.