A step by step tutorial re caret package in R from http://caret.r-forge.r-project.org/index.html