How can I calculate the difference between two consecutive values in an attribut

blatoo
blatoo New Altair Community Member
edited 2024 05 in Community Q&A
Hi RapidMiner Team,

I want to calculate the difference between two consecutive values in an attribute, but I do not which operator I can use.

For example: my dataset idspeed115218320430
I want to calculate the difference between two consecutive speed and generate a new attributes names "difference". idspeeddifference115n.a.2183320243010
How can I do this?
Tagged:

Answers

  • Andrew2
    Andrew2 New Altair Community Member
    Hello

    The "Lag Series" operator is the one to use - this is part of the Series extension so you need to install this additionally.

    regards

    Andrew
  • blatoo
    blatoo New Altair Community Member
    Hi Andrew,

    thanks very much!!! It works!!! ;)