title: CARET Package in R - createDataPartition() function not found?
body: <p>I am learning the CARET Package in R and I am trying to run to code in Max Kuhn's paper "A Short Introduction to the caret Package".  When I run the following code, after successfully installing CARET:</p>
  
  <pre><code>data(Sonar)
  set.seed(107)
  # The outcome data are needed, the percentage of data in the training set &amp; the format of the results 
  inTrain &lt;- createDataPartition(y = Sonar$Class,p = .75, list = FALSE)
  str(inTrain)
  </code></pre>
  
  <p>I get the following error that this function createDataPartition() is not found:</p>
  
  <pre><code>Error in createDataPartition(y = Sonar$Class, p = 0.75, list = FALSE) : 
    could not find function "createDataPartition"
  &gt; str(inTrain)
  Error in str(inTrain) : object 'inTrain' not found
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>Best,</p>
  
  <p>Mike</p>