title: learner doesent work by Decision Tree Classification with R
body: <p><strong>I have a training- and a Test-dataset for classification. Both Sets have 30 integer columns, 4 date Columns and 3 String Columns. One of the String Column is the classifire. there is no missing Value.</strong> <a href="https://i.stack.imgur.com/sCTAO.jpg" rel="nofollow noreferrer">data discraptin</a>
  <strong>I can run this script without any Error Message:</strong></p>
  
  <p>library(rpart)
  <br>library(caret)
  <br>set.seed(100)
  <br>inTrain &lt;- createDataPartition(y = training$target90, p = 0.66, list = FALSE)
  <br>trainL &lt;- training[ inTrain,]
  <br>trainT &lt;- training[-inTrain,]
  <br>#DecisionTreeModel
  <br>myRpartModel &lt;- rpart(trainL$target90 ~ ., method = "class", data = trainL)</p>
  
  <p><strong>these are the result of each part:</strong></p>
  
  <p><br>table(training$target90)
  <br>   JA  NEIN 
  <br> 6051   26377 
  <br> table(trainL$target90)
  <br>  JA  NEIN 
  <br>3994   17409 
  <br>table(trainT$target90)
  <br>  JA NEIN 
  <br>2057 8968 </p>
  
  <p><strong>But when I want to see the result of my model there is one Error and alle rows belong to one class:</strong></p>
  
  <p><br> summary(myRpartModel)
  <br>Call:
  <br>rpart(formula = trainL$target90 ~ ., data = trainL, method = "class")
  <br>  n= 21403 
  <br>CP:1
  <br>nsplit:0.006843599
  <br>rel:0
  <br>error:1
  <br>xerror:0
  <br>xstd:0
  <br>  Node number 1: 21403 observations
  <br>  predicted class=NEIN  expected loss=0.1866094  P(node) =1
  <br>   class counts:  3994    17409
  <br>  probabilities: 0.187    0.813 </p>
  
  <p><strong>Do you have any Idea?</strong> </p>