title: R: error while plotting C5.0 decision tree
body: <p>I'm using the R package C50 to train a C5.0 decision tree with a relatively large data set, which contains around 7 million observations and 25 variables (int, num, factor, ordered factor):</p>
  
  <pre><code>C5Tree &lt;- C5.0(Fraud ~ ., data = training, costs = costs)
  </code></pre>
  
  <p>Training works fine, but when I try to plot the tree I get the following error message:</p>
  
  <pre><code>plot(C5Tree)
  Error in partysplit(varid = as.integer(i), index = index, info = k, prob = NULL) : 
    minimum of ‘index’ is not equal to 1
  </code></pre>
  
  <p>When I use a subsample of the data (around 3.5 million observations) I get a different error message:</p>
  
  <pre><code>Error in 1:dim(a17)[1] : argument of length 0
  </code></pre>
  
  <p>I didn't experience any problems like that while using rpart and RWeka.</p>