title: How to Train and cross validation in R
body: <p>Hello i am new to R,</p>
  
  <p>I am doing coursera course for machine learning, I know training and cross validation on datasets for purpose of prediction in octave but how can i do that operations in R?</p>