Generate Attribute

Patrick2
Patrick2 New Altair Community Member
edited November 5 in Community Q&A
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
Tagged:

Answers

  • Hello

    Use 0/0 instead of ?

    Regards,

    Andrew
  • Patrick2
    Patrick2 New Altair Community Member
    awchisholm wrote:

    Use 0/0 instead of ?
    Thank you  :)
  • land
    land New Altair Community Member
    Hi,
    you can use NaN, too, I think.

    Greetings,
      Sebastian