If statement Rapid Miner-IF语句

If statement Rapid Miner-IF语句,if-statement,rapidminer,If Statement,Rapidminer,我在生成属性操作符中的IF函数表达式有一个小问题 基本功能这是我想要的功能 If VarX contains ".0", then remove this .0, else leave VarX unchanged 到目前为止,这是Rapid Miner中函数表达式的语法 if(contains(".0",VarX),replace(".0",VarX,""),VarX) 但是,由于未替换数据中的“.0”,此语法无法正常工作。参数顺序不正确 试试下面的方法 if(contains(VarX,

我在生成属性操作符中的IF函数表达式有一个小问题

基本功能这是我想要的功能

If VarX contains ".0", then remove this .0, else leave VarX unchanged
到目前为止,这是Rapid Miner中函数表达式的语法

if(contains(".0",VarX),replace(".0",VarX,""),VarX)

但是,由于未替换数据中的“.0”,此语法无法正常工作。

参数顺序不正确

试试下面的方法

if(contains(VarX, ".0"), replace(VarX, ".0", ""),VarX)