transformations:splitfixedwidthtext
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
transformations:splitfixedwidthtext [2018/07/22 16:16] – created dmitry | transformations:splitfixedwidthtext [2021/08/14 21:47] (current) – [Action settings] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Split fixed width text ===== | + | {{ transformations: |
+ | ======SPLIT FIXED WIDTH TEXT====== | ||
+ | Category: Transform / Advanced \\ | ||
- | This action splits text values of selected column into multiple columns of values of specified | + | \\ |
+ | =====Description===== | ||
+ | This action splits text values of the selected column into multiple columns of values of specified | ||
- | **Example** | + | **Show preview:** |
- | Source dataset: | + | \\ |
+ | =====Use cases===== | ||
+ | Use this action when you have a column of text-based data in which the individual values are defined by // | ||
+ | \\ | ||
+ | If your data has // | ||
+ | |||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting^Description^ | ||
+ | |Column|Select the column containing the text to be split.| | ||
+ | |Decimal separator|Select the character to represent the decimal point for columns determined to be containing numeric values, after splitting. | ||
+ | |Thousand separator|Select the character to represent thousands places for columns determined to be containing numeric values, after splitting. | ||
+ | |Treat numeric values|Select how EasyMorph should handle numeric values. | ||
+ | |Keep original column|When selected, the source column will remain in the dataset.| | ||
+ | |New columns|Refer to the table below for //new column// settings.| | ||
+ | |Put remaining symbols into column|Check " | ||
+ | \\ | ||
+ | ====New columns settings==== | ||
+ | ^Setting^Description^ | ||
+ | |Add more columns|This button will open a list where the columns in the imported file can be explicitly defined by Name and Width.\\ | ||
+ | |Name|The names to be assigned to the new columns.| | ||
+ | |Width|The size, in characters, of the column. | ||
+ | |||
+ | {{transformations: | ||
+ | |||
+ | =====Remarks===== | ||
+ | Leading and trailing whitespace are automatically removed from values when the new columns are created.\\ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | **Example: | ||
+ | \\ | ||
+ | **Source dataset:** | ||
^ Timestamp ^ | ^ Timestamp ^ | ||
| 20170102T08: | | 20170102T08: | ||
| 20170103T08: | | 20170103T08: | ||
| 20170104T08: | | 20170104T08: | ||
+ | \\ | ||
+ | **Action settings:** | ||
+ | > Column settings: | ||
+ | > Column 1 Name is " | ||
+ | > Column 2 Name is " | ||
+ | > Column 3 Name is " | ||
+ | > Column 4 Name is " | ||
+ | > Column 5 Name is " | ||
+ | > Column 6 Name is " | ||
+ | > Put remaining symbols into column " | ||
- | Objective: extract year, month, day, hour and minute from the timestamps. | + | \\ |
- | + | **Result | |
- | Settings: Year (4 characters), | + | |
- | + | ||
- | Result | + | |
^ Year ^ Month ^ Day ^ Separator1 ^ Hour ^ Separator2 ^ Minutes ^ | ^ Year ^ Month ^ Day ^ Separator1 ^ Hour ^ Separator2 ^ Minutes ^ | ||
| 2017|01 |02 |T |08 |: |31| | | 2017|01 |02 |T |08 |: |31| | ||
| 2017|01 |03 |T |08 |: |22| | | 2017|01 |03 |T |08 |: |22| | ||
| 2017|01 |04 |T |08 |: |15| | | 2017|01 |04 |T |08 |: |15| | ||
+ | Use the [[transformations: | ||
+ | |||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
+ | * [[transformations: |
transformations/splitfixedwidthtext.1532290572.txt.gz · Last modified: 2018/07/22 16:16 by dmitry