Naming Conventions |
|||||
|
Scalar |
Vector |
Matrix |
Any |
Non- |
Boolean |
BS |
BV |
BM |
BA |
BN |
Integer |
IS |
IV |
IM |
IA |
IN |
Float |
FS |
FV |
FM |
FA |
FN |
Numeric |
NS |
NV |
NM |
NA |
NN |
Character |
CS |
CV |
CM |
CA |
CN |
Enclosed |
ES |
EV |
EM |
EA |
EN |
enclosed |
TS |
TV |
TM |
TA |
TN |
Simple |
SS |
SV |
SM |
SA |
SN |
Any |
AS |
AV |
AM |
AA |
AN |
phrase e.g.: .X...Y. ⍝ X←BS; Y←IV |
|||||
combinations: use ISV for Integer scalar∨vector |
|||||
B3, I4 &c. to specify higher ranks. |
|||||
JoinDate
Transform a numeric vector (Y M D ...) or simple matrix with three or more columns into a scalar or vector of Integers representing YYYYMMDD per item.
100⊥3↑[⎕IO]⍉IA
Examples
100⊥3↑[⎕IO]⍉ 2010 8 29 112
20100829
100⊥3↑[⎕IO]⍉ ⊃(2010 8 29 112) (999 1 2)
20100829 9990102
100⊥3↑[⎕IO]⍉⊃(2010 8 29 112)(999 1 2 0)(3000 1 1 0)(3000 12 31 0)
20100829 9990102 30000101 30001231
Compatibility
Checked with: APL2, APLX, Dyalog, NARS2000
Test Cases
Show test cases
Test my code, both Examples and Test Cases.
See also: SplitDate
Mentor: KaiJaeger
Tags: <TransformDate> <DateAsInt>
APL Wiki