The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options

difference of values

sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
edited November 2018 in Help

OK I know there is an easy way to do this but cannot get my brain around it.  If I have an attribute that contains integers in ascending order but they are not sequential, how do I create a new attribute that shows the difference between each example and the one before it?  For example:

 

att1         delta

1             ?

3             2

4             1

5             1

17           12

20           3

 

etc..

 

Thanks.


Scott

Best Answer

  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,525 RM Data Scientist
    Solution Accepted

    Scott,

     

    the Lag operator is your friend.

     

    Generally speaking: All operations which requiere cross-example operations are rather in the time series extension than in core.

     

    ~Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany

Answers

  • Options
    sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    Perfect.  Thank you Martin!


    Scott

     

  • Options
    Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    Try the lag operator!

Sign In or Register to comment.