"Loop Subset Attributes: Feature Names"

MuehliManMuehliMan MemberPosts:85Guru
edited June 2019 inHelp
Dear all,

I am working with the Loop Subset Operator to iteratively select exactly 2 attributes from my dataset and generate various new attributes based on these two, like atts1/atts2 or atts1*log(atts2). The thing is I would therefore need to address both attributes from a variable name.

If I only have one I can use Loop Attributes and set a variable name for that. But I would like to do this for two attributes. Is that possible?

Best regards,
Markus

Answers

  • haddockhaddock MemberPosts:849Maven
    Greets Markus,

    You could nest loops, but that would create duplicate pairs, so you'd need to loop through the inner subset, like this ...










    <运营商激活= " true " class = " loop_attributes”compatibility="5.0.8" expanded="true" height="60" name="Loop Attributes" width="90" x="447" y="75">







    <运营商激活= " true " class = " loop_attributes”compatibility="5.0.8" expanded="true" height="60" name="Loop Attributes (2)" width="90" x="246" y="28">


























    < portSpacing端口= " sink_through 1”间隔= " 0 " / >















    Or we can be a bit more fancy like this... 8)























    I used this method to find functions in a myExperiment offering of that name.http://www.myexperiment.org/workflows/1321.html

    Have fun ;D


Sign InorRegisterto comment.