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

Generate Attribute

Patrick2Patrick2 Member Posts: 2 Contributor I
edited November 2018 in Help
Hi,

I'm trying to add parameters to my dataset using the Generate Attribute operator. In some cases I want to include a missing value for my new attribute. I have tried the following expression:
if(class=="y",FALSE,if(class=="x",?,TRUE))
Unfortunately this does not work. I hope someone can help me

Regards

Patrick

Answers

  • awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458 Unicorn
    Hello

    Use 0/0 instead of ?

    Regards,

    Andrew
  • Patrick2Patrick2 Member Posts: 2 Contributor I
    awchisholm wrote:

    Use 0/0 instead of ?
    Thank you  :)
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    you can use NaN, too, I think.

    Greetings,
      Sebastian
Sign In or Register to comment.