problem in Nominal to numerical operator

omarnj
omarnj New Altair Community Member
edited November 5 in Community Q&A
Hello Everyone
I have a data contains numbers but its type is           “ nominal “ and I need to convert it to numerical for further processing.. 

When I use “ Nominal to numerical operator “ , it encode the data and I don’t need that bc my data is numerical ONLY its type .. 

So Anyway to keep the data the same but only changing the type ??

Please Help .. 

Answers

  • varunm1
    varunm1 New Altair Community Member
    Hello @omarnj

    You can change the attribute type when you are importing data, if you alreay imported then you can follow as below.

    If the data is in RM repository, right-click on your data and click on edit as shown in below image.


    Once you do that you will get a "Data Editor" window, here go to the attribute you need to change then right click and click on "Modify attribute".


    Now in "attribute type" you can select "Numeric" from drop down. Then click "Apply" and then click on Save icon as shown in below image. Now, your attribute data type is changed to numeric. You need to drag and drop the data set into process again after saving it.


    Hope this helps.
  • tftemme
    tftemme New Altair Community Member
    Hi @omarnj

    You can also use the Parse Numbers operator. It changes a nominal attribute to a numerical numbers and tries to parse the nominal values to actual numbers.

    Best regards,
    Fabian