title: J48 tree in R - train and test classification
body: <p>I want to use train and test in J48 decision-tree on R.
  here is my code:</p>
  
  <pre><code>library("RWeka")
  
  data &lt;- read.csv("try.csv")
  resultJ48 &lt;- J48(classificationTry~., data)
  
  summary(resultJ48)
  </code></pre>
  
  <p>but I want to split my data into 70% train and 30% test, how can I use the J48 algo to do it?</p>
  
  <p>many thanks!</p>