linearRegressionModel <-
function(x, y, pcaMethod="prcomp", pcaParams=NULL){
m = lm(y ~ ., data=as.data.frame(x))
resp = abs(summary(m)$r.squared)
return(resp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.