2.2.23 newtable
Contents
Menu Information
File: New: Worksheet: New Data Table
Brief Information
Create a new worksheet or data table by selecting a table type and other settings
Additional Information
Minimum Origin Version Required: 2026b
Command Line Usage
1. newtable type:=free xy:=XY* cols:=10;
2. newtable type:=x names:="Event;Group" xt:=1 xname:=ID;
3. newtable type:=one names:="Event;Group" xt:=1;
4. newtable names:="Event;Group" xname:=ID;
5. newtable type:=con;
6. newtable type:=suv names:="Event;Group" xt:=1 etime:=Months;
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Table Type | type |
Input int |
|
Specify the table type for the new created sheet. Option list:
Refer to this page for more information on table type. |
| Data Format | sum |
Input int |
|
Specify data format. Available when Data Type = XY. Option list:
|
| Statistics | err |
Input int |
|
Specify statistics value for data and error. Available when Data Format = Summary (Mean) or Summary (Median). |
| Set Column Designatioins | xy |
Input string |
|
Specifies the column designations for all data columns. For example, if you enter XY, the plot designations of the columns will be set to the repeating pattern of "XYXYXY". In this string, each character corresponds to the designation of one column, as shown below:
'X' - X |
| Number of Columns | cols |
Input int |
|
Specify the number of columns for the new worksheet. Available for Table Type = Free Form. |
| Number of Groups | groups |
Input int |
|
Specify the number of groups. Available for Table Type = XY or Grouped (Two Way). |
| Group Names (separated by semicolons) | names |
Input string |
|
Enter semicolon-separated names for groups. |
| Row Title | xt |
Input int |
|
Check to add a Text column for row labels. Option list: 0=false, 1=true |
| X Error | xerr |
Input int |
Check to add an error bar column for X. Available for Table Type = XY. Option list: 0=false, 1=true | |
| Number of Subgroup | subgroups |
Input int |
|
Specify the number of subgroup. |
| Subgroup Names | subnames |
Input string |
Enter the names of subgroups. | |
| count |
Input int |
". | ||
| X Title | xname |
Input string |
Enter the X title. | |
| Column Categories | bnames |
Input string |
Enter semicolon-separated labels for the second categorical variable. Available for Table Type = Contingency. | |
| Elapsed Time in | etime |
Input string |
Change the unit, Months, Years, etc. |
Description
This X-Function is used to create new Origin classic worksheet or Data Table.