...
Info |
---|
NOTE: Be careful applying this function across columns of large arrays. A limit is automatically applied on large arrays to prevent overloading the browser. Avoid apply the ARRAYCROSS transform to very wide columns. |
Array literal reference example:
d-codelang-syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive type:single value: |
---|
| ARRAYCROSSarraycross[["A","B"],["1","2","3"]] ) |
|
arraycross[["A","B"],["1","2","3"]] ) |
Output: Generates Returns a single array:
Code Block |
---|
[["A","1"],["A","2"],["A","3"],["B","1"],["B","2"],["B","3"]] |
Column reference example:
d-codelang-syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive type:single value: |
---|
| ARRAYCROSSarraycross(array1,array2,array3) as:'cross_Array' |
|
arraycross(array1,array2,array3) |
Output: Generates a new cross_Array
column containing a Returns an array containing a single array listing all combinations of elements between between array1
, array2
, and and array3
.
d-codelang-syntax |
---|
RawWrangle | true |
---|
Type | syntax |
---|
showNote | true |
---|
WrangleText | derive type:single value: |
---|
| ARRAYCROSSarraycross(array_ref1,array_ref2) |
|
arraycross(array_ref1,array_ref2) |
Argument | Required? | Data Type | Description |
---|
array_ref1 | Y | string or array | Name of first column or first array literal to apply to the function |
array_ref2 | Y | string or array | Name of second column or second array literal to apply to the function |
array_ref1, array_ref2
...
Include Page |
---|
| EXAMPLE - Nested Functions |
---|
| EXAMPLE - Nested Functions |
---|
|