Important finding - I just edited one of the first posts!
I hope my thoughts are understandable - at least to some users like @Craige_Hales .
I guess, these users will also share my astonishment/enlightenment/joy and/or :help out by confirming that it's like this, provide an explanation, or make corrections.
Up to now I thought about As Column(col) as a way to retrieve the value of the current row - especially compared to Column(col) for "column access" (you know, like in Column(col) << get name).
With the inverse implication:
Whenever I use :col for anything other than the "value of the current row",then when I want to replace it with a variable, then I don't have to use As column(), I have to use the other one instead, namely Column(col).
[I must admit that I was also puzzled by the name:
As column() - for the function that does the inverse, get not the column, but the value of the current row? you are kidding?
another thought:
If As Column(col) works in such cases, then it's just because JMP corrects the error of the user automatically - or because of an esoteric effect that everybody uses but nobody explains - like in Name expr(As column(col))
So, I feel very comfortable now after finding out: ....]
This interpretation must be wrong. It is triggered by an automatism in JMP which might follow the idea:
As column(col)gives access to the column.
If it it evaluated (Eval(As Column() ...))i, it converts to column(col)[] aka column(col)[row()] which can be used to access the value of the current row. If it is not evaluated, but used in other functions, it gives access to the column.
Why do I think that it's like this?
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
row()=10;
Lag(:height); // 60
Show(lag(Column ("height"),1)); // Column("height") !!!
Show(lag(As Column ("height"),1)); // 60 !!!
Col Mean(:height); // 6255
Col Mean(:height, :age); // 60.285...
Show(Col Mean(Column ("height"))); // 62.55 (why does it work? another automatism because it is used so often?)
Try(Show(Col Mean(Column ("height"), :age)),Print(exception_msg)); // !!!
Show(Col Mean(As Column ("height"), :age)); // 60.285...
[ triggered by https://community.jmp.com/t5/Discussions/Using-numeric-objects-in-a-column-equation/m-p/903939/highl... ]