create index attribute

keyser84
keyser84 New Altair Community Member
edited November 5 in Community Q&A
I want to create an attribute which contains the index (0,1,2,3,etc.) of the instances (in the same order as in the arff file).
How do I do this in RapidMiner GUI?
Tagged:

Answers

  • steffen
    steffen New Altair Community Member
    Hello,

    Use the operator "IDTagging". Note that if you already have an attribute with role "id", it is going to replaced. To avoid this, change the role of id-attribute temporarily using the operator "ChangeAttributeRole".

    hope this was helpful

    regards,

    Steffen
  • keyser84
    keyser84 New Altair Community Member
    Thank you... I just wanted to plot id/index on x-Axis and some values on y-Axis.
    I used ChangeAttributeRole operator to make it regular (otherwise it cannot be plotted).
  • haddock
    haddock New Altair Community Member
    Hi there,

    If you are as lazy as I am, you can use the series plotter, then you don't even need an Id column, and you can plot the labels etc..

    Just my indolent two cents...

    ;)