replaceRHSByVariable <-
function(formula,
variable)
{ #++
replacement <- as.formula(paste('. ~ ', variable, sep = ''))
formula <- update.formula(formula, replacement)
return (formula)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.