transformations:keeptop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:keeptop [2015/05/01 08:55] – dmitry | transformations:keeptop [2023/10/05 00:34] (current) – removed dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Keep Top Rows ===== | ||
- | This transformation keeps only first N rows and removes all other rows. | ||
- | |||
- | If you need to remove bottom rows -- add line numbers using [[transformations: | ||
- | |||
- | EXAMPLE | ||
- | |||
- | **Source table:** The longest rivers in the world in descending order (by length) | ||
- | |||
- | ^ River ^ Length (km) ^ Continent | ||
- | | Nile | 6650 | Africa | ||
- | | Amazon | ||
- | | Yangtze | ||
- | | Mississippi | ||
- | | Yenisei | ||
- | | Yellow River | 5464 | Asia | | ||
- | | Ob | 5410 | Asia | | ||
- | | Paraná | ||
- | |||
- | |||
- | **Objective: | ||
- | |||
- | **Transformation parameters: | ||
- | * Number of rows: 3 | ||
- | |||
- | **Output table:** | ||
- | |||
- | ^ River ^ Length (km) ^ Continent | ||
- | | Nile | 6650 | Africa | ||
- | | Amazon | ||
- | | Yangtze |