How do you interpret this code:
"Training confusion matrix"
predicted <- predict(tree, type = "prob")[,1]
predicted.final <- as.factor(ifelse(predicted > 0.5, "Fail", "Pass"))
confusionMatrix(predicted.final, factor(dataset$Pass.Flag))
what does the [,1] mean in the first row?