14.03.2014 Views

Automation Reference - JMP

Automation Reference - JMP

Automation Reference - JMP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Application Object <strong>Reference</strong> for Automating <strong>JMP</strong><br />

DataTable Object<br />

SetWindowPos(X As Integer, Y As Integer)<br />

Sets the table window position relative to the Windows desktop. X and Y are in pixel coordinates.<br />

SetWindowSize(CX As Integer, CY As Integer)<br />

Sets the size of the table window in pixel coordinates.<br />

Sort(Replace As Boolean) As DataTable<br />

Sorts the table using the columns given to AddToSortList(ColumnName As String, Ascending As Boolean)<br />

As Boolean. If Replace is True, the existing table is rearranged with the sorted data and the pointer to the<br />

existing table is returned. If Replace is False, a new table is created with the sorted data and the dispatch<br />

pointer to the new table is returned.<br />

Split(ColumnID As String, OutputTableName As String, KeepRemainingCols As Boolean)<br />

Splits the table, using the ColumnID column to identify the new column names, the columns entered using<br />

AddToSplitList(ColumnName As String) As Boolean as the data, and the column entered in<br />

AddToSplitGroupList(ColumnName As String) As Boolean as the row identifier list.<br />

Stack(idColumnName As String, stackedColumnName As String, TableName As String) As DataTable<br />

Stacks the values from the columns specified in AddToStackList(ColumnName As String) As Boolean, using<br />

idColumnName to identify each row in the new table. The new stacked column is given the stackedColumnName<br />

in the new data table that is given the name specified in TableName. A dispatch pointer to the newly created data<br />

table is returned.<br />

Subset() As DataTable<br />

Takes the data that is a combination of the columns selected by AddToSubList(ColumnName As String) As<br />

Boolean and rows selected by SelectRows and creates a new data table with these values. If no columns had been<br />

added with AddToSubList(ColumnName As String) As Boolean, then all the columns are used in the subset.<br />

SubsetSetRandomSelection(SampleRateOrSize as Double, Shuffle As Boolean) As Boolean<br />

If SampleRateOrSize is greater than 0 and less than 1, it is treated as a Rate. If it is larger than 1, it is treated as<br />

the sample size. If Shuffle is set to 1, SampleRateOrSize is ignored and all the rows are shuffled in the table that<br />

is produced.<br />

SubsetStratifyAddColumn(Column As String) As Boolean<br />

Adds a table column to be used to stratify the random selection subset. Several columns can be added. After<br />

subset is called, the list of columns is emptied. You will need to specify the columns again if you perform another<br />

subset.<br />

Summary() As DataTable<br />

Creates a summary table using AddToSummaryGroup(ColumnName As String) As Boolean,<br />

AddToSummarySubGroup(ColumnName As String) As Boolean and AddToSummaryStatList(Stat As Integer).<br />

A dispatch pointer to the newly created table is returned.<br />

Page 61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!