Rename
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, imagine you have an attribute named 'alpha' of整数type andregularrole. Renaming the attribute to 'beta' will just change its name. It will retain its type整数and roleregular. To change the role of an operator, use the
operator. Many type conversion operators are available for changing the type of an attribute at 'Data Transformation/Type Conversion'.
Input
example set
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.
dictionary
This optional input port expects a dictionary (an ExampleSet with two attributes holding the old and new names). When the dictionary port is connected the 'from attribute' and 'to attribute' parameters become mandatory. The dictionary is used as a mapping from old to new attribute names.
Output
example set
The ExampleSet with renamed attributes is output of this port.
original
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
Rename attributes
This parameter is available if and only if the dictionary port is not connected. To rename one or more attributes click on theEdit Listbutton. Here you can select attributes and assign new names to them.
From attribute
This parameter is available if and only if the dictionary port is connected. It specifies the attribute in the dictionary that holds the old attribute names.
To attribute
This parameter is available if and only if the dictionary port is connected. It specifies the attribute in the dictionaries that holds the new attribute names.