条件匹配两列嗨 JMP 用户
如何编写脚本以打印列中的值:EtOH % 形成最大索引:发酵年龄。
例如:如果批次 03-05-2022 的最大发酵年龄为 68,则应选择 EtOH % 值 (13.45) 并将其打印到输出列。

在这里附上一张 JMP 表。
期待您的建议
问候
脚本回复:条件匹配两列这里有 2 种类似的方法来解决您的问题。
Names Default To Here( 1 );
dt = Current Data Table();
dt << New Column( "Output 2",
formula(
theMax = Col Maximum( :EtOH %, :Batch );
If( theMax == :EtOH %,
:EtOH %,
.
);
)
);
Names Default To Here( 1 );
dt = Current Data Table();
dt << New Column( "Output 3" );
for each row(
theMax = Col Maximum( :EtOH %, :Batch );
If( theMax == :EtOH %,
:Output3 = :EtOH %,
:Output3 = .
);
);
回复:条件匹配两列谢谢你,吉姆。