This shows you the differences between two versions of the page.
transformations:rename [2014/10/25 22:32] dmitry created |
transformations:rename [2015/04/10 19:22] (current) elenap |
||
---|---|---|---|
Line 2: | Line 2: | ||
This transformation changes column names. Duplicating names are not allowed. | This transformation changes column names. Duplicating names are not allowed. | ||
+ | |||
+ | EXAMPLE | ||
+ | |||
+ | **Source table:** The longest rivers in the world | ||
+ | |||
+ | ^ River ^ Length (km) ^ Length (miles) ^ Continent ^ | ||
+ | | Nile | 6650 | 4132 | Africa | | ||
+ | | Amazon | 6400 | 3976 | South America | | ||
+ | | Yangtze | 6300 | 3917 | Asia | | ||
+ | | Mississippi | 6275 | 3902 | North America | | ||
+ | |||
+ | |||
+ | **Objective:** Rename the column "Continent". The new column name is "Location". | ||
+ | |||
+ | **Transformation parameters:** | ||
+ | |||
+ | * Columns to rename: Continent | ||
+ | * Rename to: Location | ||
+ | | ||
+ | **Output table:** | ||
+ | |||
+ | ^ River ^ Length (km) ^ Length (miles) ^ Location ^ | ||
+ | | Nile | 6650 | 4132 | Africa | | ||
+ | | Amazon | 6400 | 3976 | South America | | ||
+ | | Yangtze | 6300 | 3917 | Asia | | ||
+ | | Mississippi | 6275 | 3902 | North America | |