duplicate-column

Description

duplicate-column adaptor is used to duplicate a column in a datatable.

To add a new column use the add-column adaptor instead.

Inputs

data Type: datatable Required: Yes The datatable containing the column to be duplicated.

column name Type: text Required: Yes The name of the column to be duplicated.

new column name Type: text Required: Yes The name of the new column.

Outputs

data Type: datatable A datatable with the duplicated column.

Examples

Example 1: Default behaviour.

Inputs:

data:

id
code
countries

1

GB

United Kingdom

2

TR

Turkey

3

US

United States

column name: code

new column name: country code

Outputs:

data:

id
code
countries
country code

1

GB

United Kingdom

GB

2

TR

Turkey

TR

3

US

United States

US

-> Created a datatable with a new column named country code , duplicating the values from the code column.

Last updated