Appendix A.
EXPND_BY_LEN and EXPND_BY_LEN_STR
EXPND_BY_LEN(var, len, nx) Returns a variable expanded by the lengths given in argument 2
|
Arguments: |
VAR |
1D variable to expand |
|
|
LEN |
lengths to expand each element of argument 1 |
|
|
nx |
length of result (sum of lengths in arg 2) |
|
Result Axes: |
X |
ABSTRACT, length given by arg 3 |
|
Y |
Inherited from DAT |
|
|
Z |
Inherited from DAT |
|
|
T |
Inherited from DAT |
|
|
E |
Inherited from DAT |
|
|
F |
Inherited from DAT |
EXPND_BY_LEN_STR (var, len, nx) Returns a string variable expanded by the lengths given in argument 2
The first argument VAR is a string. LEN and NX are numeric.
Example:
yes? let var = {8,-2,3}
yes? let lens = {3,4,2}
yes? list expnd_by_len(var,lens, `lens[i=@sum]`) !-> list expnd_by_len(var,lens, 9)
VARIABLE : EXPND_BY_LEN(VAR,LENS, 9)
SUBSET : 9 points (X)
1 / 1: 8.000
2 / 2: 8.000
3 / 3: 8.000
4 / 4: -2.000
5 / 5: -2.000
6 / 6: -2.000
7 / 7: -2.000
8 / 8: 3.000
9 / 9: 3.000


