Rename by Replacing (In Database) (In-Database Processing)
Synopsis
This operator can be used to rename a set of columns by replacing parts of the column names by a specified replacement.Description
This operator replaces parts of the column names (like whitespaces, parentheses, or other unwanted characters) by a specified replacement. The replace_what parameter can be defined as a regular expression (please refer to the annex of the RapidMiner tutorial for a description). The replace_by parameter can be defined as an arbitrary string. Empty strings are also allowed. Capturing groups of the defined regular expression can be accessed with $1, $2, $3...
Input
- example set input
Output
- example set output
Parameters
- attribute_filter_type The condition specifies which attributes are selected or affected by this operator. Range: selection
- attribute The attribute which should be chosen. Range: string
- attributes The attribute which should be chosen. Range: string
- regular_expression A regular expression for the names of the attributes which should be kept. Range: string
- use_except_expression If enabled, an exception to the specified regular expression might be specified. Attributes of matching this will be filtered out, although matching the first expression. Range: boolean
- except_regular_expression A regular expression for the names of the attributes which should be filtered out although matching the above regular expression. Range: string
- value_type The value type of the attributes. Range: selection
- use_value_type_exception If enabled, an exception to the specified value type might be specified. Attributes of this type will be filtered out, although matching the first specified type. Range: boolean
- except_value_type Except this value type. Range: selection
- block_type The block type of the attributes. Range: selection
- use_block_type_exception If enabled, an exception to the specified block type might be specified. Range: boolean
- except_block_type Except this block type. Range: selection
- numeric_condition Parameter string for the condition, e.g. '>= 5' Range: string
- invert_selection Indicates if only attributes should be accepted which would normally filtered. Range: boolean
- replace_what A regular expression defining what should be replaced in the attribute names. Range: string
- replace_by This string is used as replacement for all parts of the matching attributes where the parameter 'replace_what' matches. Range: string