Hi! I am trying to input all my column data into a 8 by 12 matrix in order( filling in the columns first in a downwards manner). There are only 72 values in my column, so I want the remaining values that are not filled to be 0. I am having a lot of problems trying to get the code below to work. I would appreciate any help! dt = Open("Example.jmp"); Rows = nrows(dt);
names= dt << Get Column Names (String);
Table =[];
Table = J(8,12,0);
For(i=1, i <= ncol(dt),i++,
data = column(dt, names[i]) <<getValues;
For(a=1, a <=12, a++,
For(b =1, b <=8, b++,
Table[a,b] = operation; // i get errors at this portion
);
);
//unsure of the correct way to implement the code below
operation= For (c =1, c= Rows, c++,
DataInput[c] = Data[c];
);
);
Print(Table);
... View more