## ------------------------------------------------------------------------
library(jroreillyregression)
data(bond)
head(bond)
## ----message = FALSE-----------------------------------------------------
library(caret)
tc = trainControl(method = "cv", number = 10)
## ------------------------------------------------------------------------
m = train(Kills~Alcohol_Units + Relationships, data = bond, method = "lm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.