If you want to be super robust about your scripts saved to a data table, you could add a little JSL:
//something like this
dt=current data table();
dt<< Distribution(Continuous Distribution( Column( :Protein ) ));
If you're not working with scripts saved to a data table. It is often a very good idea to replace the explicit data table names with a variable so that if the table name changes (e.g. gets appended to) then the script will work.
Data table("emanon") is an explicit table name.
dt=open("emanon.JMP"); is a reference to the table name. When dt is evaluated it is: data table("emanon"), but in all your scripts it's just dt.
//original script
Data Table( "trends.jmp" ) << Stack(
columns( :Protein, :Purity ),
Drop All Other Columns( 1 ),
Output Table( "Stack of trends (Protein etc.)" )
);
//edit to variable references
dt=current datatable(); //or some other way to reference the table you're acting on
dt1=dt<< Stack(
columns( :Protein, :Purity ),
Drop All Other Columns( 1 ),
Output Table( "Stack of trends (Protein etc.)" )
);
although the table name is "Stack of trends (Protein etc.)"
the reference for the new table is dt1, which has the added bonus of being much easier to type than the entire table name (that I would misspell and break the script).
JMP Systems Engineer, Health and Life Sciences (Pharma)