如何根据另一个数据表的值来选择数据?例如,使用“Big class.jMP”数据,选择“age”对应于另一个表的值的行数。

谢谢!
脚本Re: 如何根据另一个数据表的值来选择数据?d1 = Current Data Table();
d2 = Open( "$SAMPLE_DATA/Big Class.jmp" );
d2 << Update( With( d1 ), Match Columns( :age = :age ), Add Columns from Update table( :col ) );
d2 << Select Where( :col > 0 );
d3 = d2 << Subset( Output Table( "test" ), Selected Rows( 1 ), selected columns( 0 ) );
这就是我所能做的。
Re: 如何根据另一个数据表的值来选择数据?谢谢吉姆!
同样,将要使用循环。Re: 如何根据另一个数据表的值来选择数据?这是一个简单的例子来做你想要的选择
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// Create the config table
dtCon = New Table( "Config", New Column( "Col", values( {13, 15} ) ) );
// Select the data based upon the values in the Config table
dt << clear select;
For( i = 1, i <= N Rows( dtCon ), i++,
dt << select where( :age == dtCon:Col[i], current selection( "extend" ) )
);