16) The example with row deletion is amazing:
Jmp understands that I want want to delete the inverse of the initial row selection.
like AI Copilot
But one has to do it like in the video:
- select a row
- select matching cells
- invert the selection
- delete rows
Then the recorded script will also work with a future table.
If the user is lazy and uses a header graph to select rows, the script is much less useful:
:column << Select Rows([matrix of rows]) << delete rows();
Fixed in Jmp 17.2
For the column deletion, Jmp deletes the last selected columns. Not wrong - but not as clever as in the first example with the rows.
cols=associative array(current data table() << get column names());
cols << remove( associative array({sex}));
For Each({col}, cols,current data table() << delete columns(col));
btw: Is there a function Delete Columns which accepts a list of columns?