Scripting Guide > Data Tables > Accessing Data Values
发布日期: 08/07/2020

Accessing Data Values

The typical way to work with values in a data table is to follow these steps:

1. Set up the data table whose values you want to access as the current data table. Or, if you already have a data table reference, you can simply use that reference. See Set the Current Data Table.

2. Specify the row or rows whose values you want to access and specify the column name that contains the values that you want to access. See Set or Get Values by Column Name.

The following example opens the Big Class.jmp sample data table (making it the current data table), and then specifies row 2 in the weight column. A value of 123 is returned in the log, which is the weight for Louise in row 2.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:weight[2];

123

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).