Scripting Guide > Scripting Platforms > Filter by Value Using a Where Statement
发布日期: 09/18/2023

Filter by Value Using a Where Statement

You can use a Where statement to filter by a specific value. If you are adding a Where clause to a JMP script that contains column references, you must first resolve the references. The following example limits the analysis to females and fits a line on the Bivariate report.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Ycol = Column( "weight" );
Xcol = Column( "height" );
biv2 = dt << Bivariate(
Y( Ycol ),
X( Xcol ),
Fit Line( ),
Where( :sex == "F" ) );
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).