transformations:splitdelimitedtext
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
transformations:splitdelimitedtext [2018/01/24 21:47] – created dmitry | transformations:splitdelimitedtext [2023/10/11 20:53] (current) – [Remarks] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Split delimited text into columns | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Advanced \\ | ||
- | This transformation allows splitting | + | \\ |
+ | =====Description===== | ||
+ | This action splits | ||
+ | \\ | ||
+ | =====Use cases===== | ||
+ | Use this action on any text-based data files using non-standard delimiters (e.g. pipe, tilde) that Easymorph doesn' | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting^Description^ | ||
+ | |Column|Select the column containing the delimited text to be split.| | ||
+ | |Separator|Select the delimiting character to split the text by. Options: | ||
+ | |Decimal|Select the character to represent the decimal point for columns determined to be containing numeric values, after splitting. | ||
+ | |Thousand|Select the character to represent thousands places for columns determined to be containing numeric values, after splitting. | ||
+ | |Ignore quoting |When selected, delimiting characters contained within paired quotation marks will be used for splitting text. | | ||
+ | |Keep original column|When selected, the source column of the text to be split is kept in the dataset. | ||
+ | |Columns|For each column of data you expect there to be, based on the number of delimiters within the source text, create a column, and provide a column name, to hold that portion of the data. | | ||
+ | |Text beyond N< | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | After splitting, values that are interpreted as numeric by EasyMorph will be converted to the numeric format. | ||
+ | |||
+ | Two adjacent delimiters will result in an empty value in the new column.\\ | ||
+ | |||
+ | in cases where more columns have been defined than there are delimiters in the source value, the extra columns will be empty. | ||
+ | |||
+ | Leading and trailing whitespace are automatically removed from values when the new columns are created.\\ | ||
+ | |||
+ | **Import 2 to 3 times faster (experimental feature).** | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | **Example 1:** Separate the following input into individual columns based on the " | ||
+ | |||
+ | |||
+ | **Input table:** | ||
^ Date ^ | ^ Date ^ | ||
| 2017-May-12| | | 2017-May-12| | ||
| 2018-Sep-30| | | 2018-Sep-30| | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > Delimiter: " | ||
- | Delimiter: - (dash) | + | \\ |
- | + | **Result | |
- | Result: | + | |
^ Year ^ Month ^ Day ^ | ^ Year ^ Month ^ Day ^ | ||
| 2017|May | 12| | | 2017|May | 12| | ||
| 2018|Sep | 30| | | 2018|Sep | 30| | ||
- | Another example: a column with multi-line text values. | + | \\ |
+ | \\ | ||
+ | **Example 2:** Separate the following input into individual columns based on the "line break" character.\\ | ||
+ | **Input table:** | ||
^ Location ^ | ^ Location ^ | ||
| Mississauga \\ Ontario \\ Canada \\ North America | | | Mississauga \\ Ontario \\ Canada \\ North America | | ||
| Cambridge \\ Massachusetts \\ United States \\ North America | | | Cambridge \\ Massachusetts \\ United States \\ North America | | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > Delimiter: line break (Custom character 10) | ||
- | + | \\ | |
- | Delimiter: Line break | + | **Result table:** |
^ City/town ^ State/ | ^ City/town ^ State/ | ||
| Mississauga | Ontario | | Mississauga | Ontario | ||
| Cambridge | | Cambridge | ||
+ | |||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[transformations: | ||
+ | * [[transformations: |
transformations/splitdelimitedtext.1516848460.txt.gz · Last modified: 2018/01/24 21:47 by dmitry