transformations:splitdelimitedtext
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
transformations:splitdelimitedtext [2021/04/20 12:50] – craigt | transformations:splitdelimitedtext [2021/08/14 21:32] – [Action settings] craigt | ||
---|---|---|---|
Line 18: | Line 18: | ||
|Separator|Select the delimiting character to split the text by. Options: | |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. | |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. | | |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. | |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. | | |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 | + | |Text beyond |
\\ | \\ | ||
=====Remarks===== | =====Remarks===== | ||
- | It can be difficult to know how many columns | + | After splitting, values that are interpreted as numeric by EasyMorph |
- | - Calculate the full length of the source column values, | + | |
- | - Remove the delimiters using either a formula (" | + | |
- | - Calculate the length of the modified values, | + | |
- | - Subtract the modified length from the source length to determine the number of delimiters in the source text, | + | |
- | - Find the maximum value across all rows (using Analysis View, column profile/ | + | |
- | \\ | + | Two adjacent delimiters will result in an empty value in the new column.\\ |
- | If you only need to capture values to a specific point, insert enough | + | |
+ | in cases where more columns | ||
+ | |||
+ | Leading | ||
\\ | \\ | ||
Line 50: | Line 49: | ||
\\ | \\ | ||
- | **Result:** | + | **Result |
^ Year ^ Month ^ Day ^ | ^ Year ^ Month ^ Day ^ | ||
| 2017|May | 12| | | 2017|May | 12| | ||
Line 68: | Line 67: | ||
\\ | \\ | ||
- | **Result:** | + | **Result |
^ City/town ^ State/ | ^ City/town ^ State/ | ||
| Mississauga | Ontario | | Mississauga | Ontario | ||
| Cambridge | | Cambridge | ||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
\\ | \\ |
transformations/splitdelimitedtext.txt · Last modified: 2023/10/11 20:53 by craigt