expRename: Change the name of elements that an experiment contains

Description Usage Arguments Value Examples

View source: R/fun_expRename.R

Description

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

Usage

1
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

1
2
3
4
5
6
# 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")))

jacintoArias/exreport documentation built on June 6, 2021, 3:40 a.m.