Change the order of elements that an experiment contains


expReorder(e, elements, placeRestAtEnd = TRUE)


Input experiment
A list of arrays of strings containing the ordered names. The name for the parameter, method or problem will be given by the name of the corresponding object in the list. The names which have not been specified will be placed at the begining or at the end (depending on the parameter placeRestAtEnd). If a name is not present in the set of parameter values, it will be ignored.
Logical value which indicates if the non specified value names have to be placed after the specified ones (TRUE) or before (FALSE).


A modified exreport experiment object with some changes on the name of the elements.


This function change the order of problems, methods or parameter values that an existing experiment object contains. The order affects the look of the data representation (as tables and plots).


# We load the wekaExperiment problem as an experiment and then change the order # of the values for the parameter featureSelection and for one valoue for the method. experiment <- expCreate(wekaExperiment, name="test", parameter="fold") expReorder(experiment, list(featureSelection = c("yes","no"), method=c("OneR")))
#Experiment name: test #method: OneR, J48, NaiveBayes, RandomForest #problem: anneal, audiology, balance-scale, car, glass, horsecolic, hypothyroid, ionosphere, liver-disorders, lymph, primary-tumor, soybean, vehicle, vote, vowel #parameters: *) featureSelection [yes,no] *) fold [0,1,2,3,4,5,6,7,8,9] #outputs: accuracy, trainingTime

Back to top

Built by staticdocs. Styled with bootstrap.