I want to save selected rows from a table in a jmp file and also the inversion of the selected rows in another jmp file after using the partition function. I went through some examples and other threads but I am not able to save the selected rows and the inverted rows. I must be doing something wrong. Does anyone have any idea how it can be done in JSL?
Names Default To Here( 1 );
dt = Open( "C:/Users/Desktop/driver/MASTER.jmp" );
f = Function({a}, theRows = Current Data Table() << get selected rows;
Show(theRows);
);
obj = Partition(
Y( :Failed ),
X(
:VOLUME,
:FAMILY,
:CONFIG
),
Method( "Decision Tree" ),
Validation Portion( .2 )
);
obj << ShowGraph( 0 );
obj << SplitBest( 4 );
obj << on close( Clear Symbols( rs ) );
action = 0;
actionsubset = 0;
look_window = New Window( "Decision",
Lineup Box( N Col( 1 ),
V List Box(
Text Box( "After selection of the rows,go for Plot?" ),
H List Box(
spacer box(size(100,5)),
Button Box( "Continue",
action = 1;
look_window << close window;
//obj << Save( "C:\Users\Desktop\test.csv" );
//filepath = "C:\Users\Desktop\driver";
//rs << save( filepath || "\" || "p1.jmp" );
Include("C:/Users/Desktop/driver/plot.jsl");
),
Button Box( "Close",
action = 2;
Close( obj, nosave );
//Throw( "You cancelled the script." );
),
)
),
)
);