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
Answers
yes it is possible to set the filename of any read operator with a macro. But you have to note two things:
1.) The macro operator must be executed before/ the read operator. You can check and change the execution order within the process tab using the button displaying an up-down-arrow with an questionmark.
2.) Metadata handling does not work anymore as the read operator does not know the filename before the process is run.
Best regards,
chero
(but there is no input for data retrievers of course)
Well I'm kinda new to this program, but i start to like it because its very useful.
But now I'm having another problem, because my filenames aren't just with numbers but with dates.
Is there a way to get the current date within rapidminer(with a macro)?
I looked nearly everywhere but can't find any info about that.
Only thing i found was something about adjusting a date in a column wich can be handy later.
I also found the operator for generating data and for creating a data-column wich i thought could be used to create a column that contains the current date.
Sadly i was wrong .
Btw:
Is there somewhere an overview of the functions you can use in macros?
I found that page http://rapid-i.com/wiki/index.php?title=Generate_Macro , sadly there aren't any date functions.
Are that the only functions that are supported at the moment?
EDIT:
http://rapid-i.com/wiki/index.php?title=First_Steps_With_RapidMiner#Parameter_Macros
Alright, %{t} is what i need i guess.
Sadly it outputs something like this:
2010_06_26-AM_10_16_18
But i need to get a value like:
2010-06-26
Anybody has any idea, how to format the value of a date inside a macro?
Edit again - the solution:
Alright, i solved the last problem myself.
The example below takes the system date and subtracts 2 days from the current date.
To view the content of the macro i added the column as output.(currdate)