User Tools

Site Tools


transformations:keeptop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
transformations:keeptop [2015/05/01 12:55]
dmitry
transformations:keeptop [2015/05/01 16:55]
elenap
Line 1: Line 1:
-===== Keep Top Rows =====+===== Trim Table =====
  
-This transformation keeps only first N rows and removes all other rows. +This transformation keeps or removes first or last N rows.
- +
-If you need to remove bottom rows -- add line numbers using [[transformations:enumerate|Enumerate Rows]], sort backwards by row numbers using [[transformations:sort|Sort]] and then apply Keep Top Rows.+
  
 EXAMPLE EXAMPLE
  
-**Source table:** The longest rivers in the world in descending order (by length)+**Table:** The longest rivers in the world in descending order (by length)
  
 ^  River  ^  Length (km)  ^  Continent  ^ ^  River  ^  Length (km)  ^  Continent  ^
Line 23: Line 21:
  
 **Transformation parameters:** **Transformation parameters:**
 +  * Keep or Remove: Keep
 +  * Top or bottom: Top
   * Number of rows: 3   * Number of rows: 3
  
-**Output table:**+**Result:**
  
 ^  River  ^  Length (km)  ^  Continent  ^ ^  River  ^  Length (km)  ^  Continent  ^
transformations/keeptop.txt · Last modified: 2015/05/01 16:55 by elenap