title: How to extract the splitting rules for the terminal nodes of ctree()
body: <p>I have a data set with 6 categorical variables with levels ranging from 5 to 28. I have obtained an output from <em>ctree()</em> (party package) with 17 terminal nodes. I have followed the inputs by @Galled from <a href="https://stackoverflow.com/questions/21443203/ctree-how-to-get-the-list-of-splitting-conditions-for-each-terminal-node?rq=1">ctree() - How to get the list of splitting conditions for each terminal node?</a> to arrive at my desired output.</p>
  
  <p>But, I'm getting the following error post running the code:</p>
  
  <pre><code>Error in data.frame(ResulTable, Means, Counts) : 
    arguments imply differing number of rows: 17, 2
  </code></pre>
  
  <p>I have tried adding this extra lines:</p>
  
  <pre><code>ResulTable &lt;- rbind(ResulTable, cbind(Node = Node, Path = Path2))
  
  ResulTable$Node &lt;- rownames(ResulTable)
  
  melt(ResulTable)
  </code></pre>
  
  <p>but no success so far. Any pointers on where it is going wrong?</p>