🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to delete attributes or rows of the exampleset automatically

User: "sharki"
New Altair Community Member
Updated by Jocelyn
Hi guys, 
i am a new member of the Rapidminer community and would like know, how can i just remove or delete automatically several attributes or rows, which contain certain  kind values? For my apllication i dont need the time stamp and would like to delete them from my example set. Thank you :)

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "lionelderkrikor"
    New Altair Community Member
    Accepted Answer
    Updated by lionelderkrikor
    Hi @sharki,

    That was interesting to solve ! 

    The idea here is to find  and replace the timestamp values by the caracter "?" using a regex to "capture" the timestamp values for each attribute, so I'm using Generate Attributes operator with the following expression : 

    if(finds(eval(concat("att_",%{iteration})),"(0[1-9]|[1-2][0-9]|3[0-1]).(0[1-9]|1[0-2]).[0-9]{4} (2[0-3]|[01][0-9]):[0-5][0-9]"),"?",eval(concat("att_",%{iteration})))
    then I loop over the attributes to remove the example(s) which contains the caracter "?"...

    Note that the attributes names have to be "att_1", "att_2", "att_3" etc. ... but according to the last screenshot of your first post it is already the case.

    You have just to put the process in attached file at the end of your own process.

    Hope this helps,

    Regards,

    Lionel

    PS : In attached file, the .xls file I used to create a fictive exampleset representative of yours.