transformations:replace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:replace [2021/03/21 12:57] – craigt | transformations:replace [2021/07/17 23:37] (current) – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{ transformations: | {{ transformations: | ||
====== REPLACE ====== | ====== REPLACE ====== | ||
- | Category: Transform / Basic | + | Category: Transform / Basic\\ |
+ | \\ | ||
=====Description===== | =====Description===== | ||
- | This action replaces particular values in a column with new values. The new values can be either text or numbers. | + | This action replaces particular values in a column with new values. The new values can be either text or numbers. |
+ | |||
+ | \\ | ||
+ | =====Use cases===== | ||
+ | Replacing mistyped names and words with correct ones. | ||
+ | If used together with the [[transformations: | ||
\\ | \\ | ||
Line 18: | Line 24: | ||
\\ | \\ | ||
- | =====Use cases===== | + | =====Remarks===== |
- | Replacing mistyped names and words with correct ones. | + | Only //whole// values are replaced |
- | + | ||
- | If used together with the [[transformations: | + | |
\\ | \\ | ||
=====Examples===== | =====Examples===== | ||
- | **Example: | + | **Example: |
**Source table:** The longest rivers in the world | **Source table:** The longest rivers in the world | ||
- | ^ River ^ Length (km) ^ Length (miles) | + | ^River |
- | | Nile | 6650 | 4132 | Africa | + | | Nile | 6650| 4132|Africa |
- | | Amazon | + | | Amazon |
- | | Yangtze | + | | Yangtze |
- | | Mississippi | + | | Mississippi |
- | + | \\ | |
- | + | **Action | |
- | **Transformation | + | |
> Continent column. | > Continent column. | ||
> (Before) N. America: (After) North America | > (Before) N. America: (After) North America | ||
> (Before) S. America: (After) South America | > (Before) S. America: (After) South America | ||
+ | \\ | ||
+ | **Result table:** | ||
+ | ^River | ||
+ | | Nile | 6650| 4132|Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
- | **Output table:** | + | \\ |
- | + | ====Community examples==== | |
- | ^ River ^ Length | + | |
- | | Nile | + | |
- | | Amazon | + | |
- | | Yangtze | + | |
- | | Mississippi | + | |
+ | \\ | ||
+ | =====Shortcuts===== | ||
+ | Fast ways to create the action:\\ | ||
+ | *Right-click on the value to replace in a dataset and select " | ||
\\ | \\ | ||
- | =====See | + | =====See |
- | * [[transformations: | + | * [[transformations: |
+ | * [[transformations: | ||
+ | * [[transformations: | ||
transformations/replace.txt · Last modified: 2021/07/17 23:37 by craigt