transformations:append
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
transformations:append [2014/10/25 17:05] – created dmitry | transformations:append [2020/12/04 08:00] – dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Append table ===== | ===== Append table ===== | ||
- | This transformation appends | + | Appends |
+ | |||
+ | **Appends rows** - the other table (dataset) is appended as new rows at the bottom of current table. Columns with the same name in both tables appear as one column in the result table. | ||
+ | |||
+ | This mode has the useful feature of preserving the order of columns of the main dataset to which the other dataset is appended. | ||
+ | |||
+ | **Append columns** - the other table (dataset) is appended as new columns to the right. Columns from the appended table with the same name as in the main table are automatically renamed. The length of the resulting table has the length of the longest of the two table. | ||
+ | |||
+ | |||
+ | EXAMPLE | ||
+ | |||
+ | **Table 1:** The longest rivers in the world | ||
+ | |||
+ | ^ River ^ Length (km) ^ Continent | ||
+ | | Nile | 6650 | Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | |||
+ | **Table 2:** The outflow | ||
+ | |||
+ | ^ River ^ Outflow | ||
+ | | Nile | Mediterranean | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | |||
+ | |||
+ | **Objective: | ||
+ | |||
+ | **Result: | ||
+ | |||
+ | ^ River ^ Length (km) ^ Continent | ||
+ | | Nile | 6650 | Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | | Nile | | | Mediterranean | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | |||
+ | === More examples === | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | === See also === | ||
+ | * [[transformations: | ||
+ | * [[transformations: |
transformations/append.txt · Last modified: 2021/07/19 02:32 by craigt