Learn R Programming

exreport (version 0.4.1)

expRename: Change the name of elements that an experiment contains

Description

This function change the name of problems, methods or parameter values that an existing experiment object contains.

Usage

expRename(e, elements = list(), name = NULL)

Arguments

e
Input experiment
elements
A list of arrays of strings containing the new names. The old name will be specified as the name of the element in such array, and the name for the parameter, method or problem will be given by the name of the corresponding object in the list. If a name is not present in the set of parameter names or parameter values, it will be ignored.
name
The name of the new experiment. If NULL, the previous name will be used.

Value

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

Examples

Run this code
# We load the wekaExperiment problem as an experiment and then change the name
# of one value for the parameter discretization and for one method.

experiment <- expCreate(wekaExperiment, name="test", parameter="fold")
expRename(experiment, list(featureSelection = c("no"="false"),
                           method=c("RandomForest"="RndForest")))

Run the code above in your browser using DataLab