🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Generate Attribute

User: "Patrick2"
New Altair Community Member
Updated by Jocelyn
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

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Andrew2"
    New Altair Community Member
    Hello

    Use 0/0 instead of ?

    Regards,

    Andrew
    User: "Patrick2"
    New Altair Community Member
    OP
    awchisholm wrote:

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

    Greetings,
      Sebastian