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
Date Month Names - numbers to titles.
Hi All - Is there an easy way to convert Date Month Number (0,1,2,etc) into month names (Jan, Feb,etc) other than the below general if statement?
if(eval(%{Data_Month})==0,"January",
if(eval(%{Data_Month})==1,"February",
if(eval(%{Data_Month})==2,"March",
if(eval(%{Data_Month})==3,"April",
if(eval(%{Data_Month})==4,"May",
if(eval(%{Data_Month})==5,"June",
if(eval(%{Data_Month})==6,"July",
if(eval(%{Data_Month})==7,"August",
if(eval(%{Data_Month})==8,"September",
if(eval(%{Data_Month})==9,"October",
if(eval(%{Data_Month})==10,"November",
if(eval(%{Data_Month})==11,"December","N/A"))))))))))))
Tagged:
0
Best Answer
-
MartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data ScientistHi,you can turn it into a nominal and use a Map operator or Join a mapping table?Best,Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany5
Answers