Skip to main content

Rename by Example Values (Deprecated)

Synopsis

This operator renames the attributes of an ExampleSet by assigning the values of a specified example as attribute names and deleting that example from the ExampleSet. This operator is deprecated. Please use the Rename by Example Values from the blending extension instead.

Description

The Rename by Example Values operator uses the values of the specified example of the ExampleSet as new attribute names. Therow numberparameter specifies which row should be used as attribute names. Please note that all regular and special attributes are renamed. Moreover, the example is deleted from the ExampleSet. This operator can be useful in cases when an example holds the names of the attributes.

Please keep in mind that attribute names must be unique. The Rename by Example Values operator has no impact on the type or role of an attribute. For example if you have an attribute named 'alpha' ofintegertype andregularrole. Renaming the attribute to 'beta' will just change its name. It will retain its typeintegerand roleregular. To change the role of an operator, use theSet Roleoperator. Many type conversion operators are available for changing the type of an attribute at 'Data Transformation/Type Conversion'.

Input

example set input

This input port expects an ExampleSet. It is the output of the Subprocess 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 the data for the input because attributes are specified in their meta data.

Output

example set output

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

Row number

This parameter specifies which row values should be used as attribute names. Please note that counting starts with 1.