The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED] Null as a possible result using an IF function
Hello,
This seems basic but I was not able to figure it out, so hoping that someone can help.
I would like to write a condition like the following:
If(Atrribute="Green",1,NULL)
Where if the matching attribute value is "Green", then the result is yes, but if not, the value is null. I am using the Generate Attribute operator and attempted to use "" but because the attribute that is generated is a real number, the "" does not work.
Thanks,
Eric
P.S. - Is there a reference of all RapidMiner functions available? I know there are the built in pop-up windows but those examples are usually very brief and limited (fine for the program, I'm just looking for a reference with more example situations).
This seems basic but I was not able to figure it out, so hoping that someone can help.
I would like to write a condition like the following:
If(Atrribute="Green",1,NULL)
Where if the matching attribute value is "Green", then the result is yes, but if not, the value is null. I am using the Generate Attribute operator and attempted to use "" but because the attribute that is generated is a real number, the "" does not work.
Thanks,
Eric
P.S. - Is there a reference of all RapidMiner functions available? I know there are the built in pop-up windows but those examples are usually very brief and limited (fine for the program, I'm just looking for a reference with more example situations).
0
Answers
this would be how you can do it directly with the Generate Attributes operator: Regards,
Marco
Thanks very much for the replies - I can see situations where both of your suggestions apply. I appreciate the help!
-Eric