New Table( "My Table" );
dt = New Table( "My Table" );
The following sections describe the optional arguments for the New Table() function.
The optional visibility argument specifies whether the new data table is shown. visibility( "invisible" ) hides the data table from view; it appears only in the JMP Home Window and the Window menu. visibility( "private" ) avoids opening the data table. visibility( "visible" ) shows the data table. "visible" is the default value.
New Table( "My Table", visibility( "private" ) );
•
|
Private tables are not counted when N Table() returns the number of open data tables.
|
•
|
Private tables cannot be made current with Current Data Table().
|
An optional argument that can define the new table. For example, the following script creates a new data table named Little Class. It adds three rows and two named columns as well as entering values for each cell in the table:
dt = New Table( "Little Class",
Add Rows( 3 ),
New Column( "name",
Character,
"Nominal",
Set Values( {"KATIE", "LOUISE", "JANE"} )
),
New Column( "height",
"Continuous",
Set Values( [59, 61, 55] )
)
);