Can i recall an atrribute with a string an a macro in a function expression?

PlättenzwergPlättenzwerg MemberPosts:2Contributor I
I have multiple atrributes in pairs. The actual value and the target Value.
They are named Mi and SET Mi.
I want to create the differenz between them.
The plan was to loop(attribute) the operator genrate Attribute with the function expression %{loop_attribute} - ["SET "#loop_attribute ].
I tried diffrent functions like concat(), attribute() and the help of a second macro, but i cannot find the right expression.

Thanks for your help

Hermann

Best Answer

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,417RM Data Scientist
    Solution Accepted
    Hi Hermann,

    attached is a process showing this. The Generate Attribute equation I use is:
    eval(%{loop_attribute})-attribute("SET "+%{loop_attribute})

    I think you can adapt it from here?

    Best,
    Martin




















    <参数键= " number_of_attributes " value = " 5 " / >

    <参数键= " attributes_upper_bound" value="10.0"/>














    <参数键= " number_of_attributes " value = " 5 " / >

    <参数键= " attributes_upper_bound" value="10.0"/>














































    Generate an example data set
















































    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
    Plättenzwerg

Answers

Sign InorRegisterto comment.