Loop which sets a mark from a time interval
Dear Rapidminer Community,
I got a problem which I hope you can help me with!
I have a time interval, lets say from 27th of November 3pm to 7pm and what I would like to do is that I take this interval and mark all the hours within this interval on a 24h basis.
Like this:
27th November 1 AM
27th November 2 AM
27th November 3 AM
27th November 4 AM
....
27th November 2 PM
27th November 3 PM X (the mark)
27th November 4 PM X (the mark)
27th November 5 PM X (the mark)
27th November 6 PM X (the mark)
27th November 7 PM X (the mark)
27th November 8 PM
27th November 9 PM
....
I tried to solve this with a generate attribute operator and an "if clause" but I didn't manage to get any proper results!
Is there any way to solve this?
Best regards
Felix
Answers
Hi Felix,
You can use a couple of ways, but Generate Attributes should work fine for you. See these examples.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Thank you very much for your quick help!
Is there also a loop which can go through a high amount of those intervals (~1000)? Because right now, this solutions works only for one specific date, right?!
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Can I do this with Loop Examples? Because the intervals are below each other.
Something like this would work @felix_w
You can load a list of dates to mark here and the process will mark any number of them.
Thank you again for your great help! I will try that tomorrow!