Machine Learing Performance Measurement

I am working on a project where I want to compare the performance measurements of machine learning algorithms(MLA). I am trying to use the Hmeasure package on R to do that but I am findind difficult in getting the scores for the following MLA; Random Forest, Decision Tree, SVM, ANN, and Stochastic Gradient boosting.

Here is a picture of the codesThe picture contains full code for Random forest, the rest of the MLA follows same patterns

So please help me find the scores of the various MLA algorithms

Below is an example from the R help pageI want to obtain similar results like the way they got the scores for LDA and KNN