User Tools

Site Tools


transformations:lookup

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
transformations:lookup [2021/04/04 00:01] craigttransformations:lookup [2021/07/19 02:31] (current) – [Examples] craigt
Line 43: Line 43:
 =====Examples===== =====Examples=====
  
-**Objective:** Substitute all instances of the province name variations with "Quebec" for consistency. +**Example:** Substitute all instances of the province name variations with "Quebec" for consistency. 
  
-**Table 1:** Canadian Olympic Champions 2014+**Source table 1:** Canadian Olympic Champions 2014
  
 ^Gold medalist  ^Province  ^Sport  ^ ^Gold medalist  ^Province  ^Sport  ^
Line 55: Line 55:
 | Charles Hamelin  |Que.  |men’s short-track  | | Charles Hamelin  |Que.  |men’s short-track  |
 \\  \\ 
-**Table 2:** Substitution lookup table+**Source table 2:** Substitution lookup table
  
 ^Old name  ^New name  ^   ^Old name  ^New name  ^  
Line 64: Line 64:
 **Action parameters:** **Action parameters:**
 > Replace value in column: Province > Replace value in column: Province
->Using table: Table 2+>Using table: Source table 2
 >Look up in column: Old name >Look up in column: Old name
 >Replace with values from column: New name >Replace with values from column: New name
 >When not found: Keep original value >When not found: Keep original value
 \\  \\ 
-**Result:**+**Result table:**
  
 ^Gold medalist  ^Province  ^Sport  ^ ^Gold medalist  ^Province  ^Sport  ^
Line 80: Line 80:
 \\  \\ 
 **Alternate result:**\\ **Alternate result:**\\
-If "Append new column" had been selected instead of "Replace value",above, the following dataset would be the output:+If "Append new column" had been selected instead of "Replace value", above, the following dataset would be the output:
  
 ^Gold medalist  ^Province  ^Sport  ^New name^ ^Gold medalist  ^Province  ^Sport  ^New name^
Line 89: Line 89:
 | Heather Moyse  |P.E.I.  |women’s bobsleigh  |P.E.I.  | | Heather Moyse  |P.E.I.  |women’s bobsleigh  |P.E.I.  |
 | Charles Hamelin  |Que.  |men’s short-track  |Quebec  | | Charles Hamelin  |Que.  |men’s short-track  |Quebec  |
 +
 +\\ 
 +====Community examples====
 +  * [[https://community.easymorph.com/t//1551/2|How to look up and replace a string of text]] ([[https://community.easymorph.com/uploads/short-url/dvCtD7gg0AHUtXZ7tmQmuHflSYU.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Table 3//; Action position: //4//)
 +  * [[https://community.easymorph.com/t//1837/4|Joining different pairs of value equivalences into “global equivalences”]] ([[https://community.easymorph.com/uploads/short-url/1TpBXIjf6r4auDHlOBejKh2rSTw.morph|Project]]; Module: //Group//; Group: //Tab 1//; Table: //Result//;\\ Action position: //2//)
 +  * [[https://community.easymorph.com/t//2060/2|Search, remove, and shift]] ([[https://community.easymorph.com/uploads/short-url/cCqOTak9SLKPXbityR5IAlgULJa.morph|Project]]; Module: //Main//; Group: //Regrouping//; Table: //ExtractingData.xlsx//; Action position: //12//)
  
 \\  \\ 
transformations/lookup.txt · Last modified: 2021/07/19 02:31 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki