subset a table with category in a column and name the sub tables with the cat. name;
I wrote a short script as below but it name both table as "F" and "F2", rather than "F" and "M". Anything I did wrongly?
Names default to here(1);
dtsumm = dt << Summary(
Group( :sex )
Alternatively, you could let JMP do the subsetting by categories using the By() option in Subset():
Data Table( "Big Class.jmp" ) << Subset(
By( :sex ),
Selected columns only( 0 ),
columns( :name, :age, :height, :weight )
No need for the Summary() or the For() loop.