The requirements for calculation with the data of "Big Class.jmp" and formula are as follows:
Add column "row6" and find the minimum height from row 10 and up to 6 rows;
Add column "row7" and find the minimum value of the height column starting from row 10 and up to 7 rows;
...
How to find the result of "row6" -- "row9" directly by using memory array method?
Thanks!
dt=Open("$SAMPLE_DATA/Big Class.jmp");
dt<<New Column("row6",formula(if(row()>9,min(height[Index(Row()-6,Row())])));dt<<run formulas;Column("row6")<<deleteFormula;
dt<<New Column("row7",formula(if(row()>9,min(height[Index(Row()-7,Row())])));dt<<run formulas;Column("row7")<<deleteFormula;
dt<<New Column("row8",formula(if(row()>9,min(height[Index(Row()-8,Row())])));dt<<run formulas;Column("row8")<<deleteFormula;
dt<<New Column("row9",formula(if(row()>9,min(height[Index(Row()-9,Row())])));dt<<run formulas;Column("row9")<<deleteFormula;