Options

Generate Attributes, support for function "choose"

tennenrishintennenrishin Member Posts: 177 Contributor II
edited June 2019 in Help
Can we request a function (that can be used, for example, in Generate Attributes) that generalizes 'if'?
choose(1,a,b,c)==a
choose(2,a,b,c)==b
choose(3,a,b,c)==c
with variable number of arguments

Answers

  • Options
    MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hm, do you have looping over attributes in mind? Would not be the Loop Attributes operator a valid choice then?
  • Options
    tennenrishintennenrishin Member Posts: 177 Contributor II
    Not really. I just think it can be a useful function for composing certain expressions, which is probably also why spreadsheets support it.
Sign In or Register to comment.