Categories

Versions

You are viewing the RapidMiner Studio documentation for version 9.5 - Check here for latest version

Rename (RapidMiner Studio Core)

Synopsis

This operator can be used to rename one or more attributes of an ExampleSet.

Description

The Rename operator is used for renaming one or more attributes of the input ExampleSet. Please keep in mind that attribute names must be unique. The Rename operator has no impact on the type or role of an attribute. For example if you have an attribute named 'alpha' of integer type and regular role. Renaming the attribute to 'beta' will just change its name. It will retain its type integer and role regular. To change the role of an operator, use the Set Role operator. Many type conversion operators are available for changing the type of an attribute at 'Data Transformation/Type Conversion'.

Input

  • example set (IOObject)

    This input port expects an ExampleSet. It is the output of the Retrieve operator in the attached Example Process. The output of other operators can also be used as input. It is essential that meta data should be attached with data for input because attributes are specified in its meta data. The Retrieve operator provides meta data along-with data.

Output

  • example set (IOObject)

    The ExampleSet with renamed attributes is output of this port.

  • original (IOObject)

    The ExampleSet that was given as input is passed without changing to the output through this port. This is usually used to reuse the same ExampleSet in further operators or to view the ExampleSet in the Results Workspace.

Parameters

  • old_nameThis parameter is used to select the attribute whose name is to be changed. Range: string
  • new_nameThe new name of the attribute is specified through this parameter. Name can also include special characters. Range: string
  • rename_additional_attributesTo rename more than one attributes click on the Edit List button. Here you can select attributes and assign new names to them. Range: string

Tutorial Processes

Renaming multiple attributes

The 'Golf ' data set is used in this Example Process.The 'Play' attribute is renamed to 'Game' and the 'Wind' attribute is renamed to '#*#'. The 'Wind' attribute is renamed to '#*#', just to show that special characters can also be used to rename attributes. However, attribute names should always be meaningful and should be relevant to the type of information stored in them.