The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Find the duration between date and average duration
Hi, I'm new here and also new to rapidminer. I got some question to ask for my project. It is about I need to find the duration between two dates let say "shipping date" and "received date". Is there any operator can do this calculation? I know that "Generate Attribute" operator can do many kind of calculation but I not too sure about the date.
0
Answers
Sure, this is very easy to do inside of Generate Attributes using the "date_diff" function. There is also a "date_now" function if you need to find the time between a given date and today. If you look in that operator you will find them both under the "date calculation" section. Note that the "date_diff" function returns the value in milliseconds so you will probably want to convert that (through simple division) into a more intuitive measure such as days, months, or years (depending on your data).
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
I just realized that I got a column contain with dates and time but the type is in Polynominal.
I tried to use the Nominal to Date operator but I keep having an error message "Cannot Parse Date".
The data format is like this "8/22/16 10.40". I want to convert it into format like "Aug 22, 16 10:40:00 PM SGT". I need the time as well, because I need to find the difference between time and date.
Do you have any idea how can I solve this?
Thank you in advance
Yep, with "Nominal to Date" you have to tell it the string format that the date is being stored in. See the operator help for information on the specifics of the date formatting in RapidMiner. You should be able to indicate its pattern, and then it will convert and store the information as a date/time, at which point the aforementioned date difference calculation will work just fine!
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
It looks like the time portion of your record may be in a form that RapidMiner can't recognize (is this AM or PM, what is the timezone, etc). So you have a couple of options:
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts