Subscribe Bookmark RSS Feed

Making a new DT with tabulate with jsl

theo_beluzzi

Community Trekker

Joined:

Mar 8, 2016

I'm trying to make a new dt from tabulate, but for some unknown reason, it doesn't work! Anyone know why?

DT2 = (DT1 << Tabulate(

  Show Control Panel( 0 ),

  Add Table( Row Table( Grouping Columns( :age, :sex ) ) )

) << Make Data Table);

2 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

This works:

dt1 = open("$sample_data\Big Class.jmp");

dt2 = (dt1 << Tabulate(

      Show Control Panel( 0 ),

      Add Table( Row Table( Grouping Columns( :age, :sex ) ) )

)) << Make Into Data Table;

txnelson

Super User

Joined:

Jun 22, 2012

The easiest way to create the JSL you need to create a data table when using Tabulate, is to run the Tabulation Platform, then go to the red triangle, and select the "Make into a Data Table".  Now all you have to do is to go to the new data table and go to the table panel and click on the red triangle next to the word "Source", and select Edit.  When you do that, you will see the complete JSL code required to create the Tabulate and to output the data table.

Jim