How do I stack columns using a numerical range of columns in a script?I know this is probably an easy one, but I've been struggling with this for the past 3 hours...
Using JSL, how do I stack columns using a numerical range? for example stack columns 3 to 16.
Thank you!!
Automation and ScriptingData Blending and CleanupRe: How do I stack columns using a numerical range of columns in a script?Thanks @Jasean !!!
Re: How do I stack columns using a numerical range of columns in a script? You can use a matrix to specify the columns in the stack command. Here is an example using a sample table:
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
StackDT = dt << Stack(
columns( 5::10 ),
Source Label Column( "Label" ),
Stacked Data Column( "Data" ),
Drop All Other Columns( 1 )
);