cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

JMP Wish List

We want to hear your ideas for improving JMP. Share them here.
Choose Language Hide Translation Bar

Add Original order property/columm to JMP datatables on open/creation

From time to time I would like to re-order my data how it did look when I did open it. I can do this if I remember to create column "Order" when I open the table, but I would like to have Preference in JMP which would allow me to have this created automatically either as Column or possibly some table property which would allow me to create the column when needed. 

 

Example how I currently handle it (with addin or script with shortcut):

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

If(N Items(Get Data Table List()) == 0,
	Throw("No datatables open");
);

new_col =  Current Data Table() << New Column("ORIGINAL_ROW", Numeric, Ordinal, Hide, Exclude,
	<< Set Each Value(Row());
);
Current Data Table() << Move Selected Columns(new_col, to First);

Not sure how subsetting and such should be handled, but maybe the original order could be left there and new created due to subsetting?