The first 3 lines of this script create a new data table where heights are less than 60. This part runs fine.
For the function that I would like to develop I would like to reference a column in a different way than using :height.
I have tried 4 different ways to reference the column, but none of them work. I have used the column function and get column reference function (please see below).
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
//This one works
dtSubgroup = dt << Subset(Rows(dt << get rows where(:height < 60)));
//None of these work
dtSubgroup = dt << Subset(Rows(dt << get rows where(Column("height") < 60)));
dtSubgroup = dt << Subset(Rows(dt << get rows where(Column(dt, "height") < 60)));
dtSubgroup = dt << Subset(Rows(dt << get rows where(Column(4) < 60)));
refList = dt << Get Column Reference( {"height"} );
dtSubgroup = dt << Subset(Rows(dt << get rows where(refList[1] < 60)));Is there any reason why they do not work?
Any suggestion on a solution?
Thank you for your help.