The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 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.
Options

Generate Attributes : AGE

CelineSCelineS Member Posts: 6 Newbie
edited August 2020 in Help
hi everyone, 

  How can I generate AGE from DOB? How should I write the function in Function Descriptions ? 

Thanks

Answers

  • Options
    lionelderkrikorlionelderkrikor Moderator, RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn
    Hi @CelineS,

    You can use (if I understand correctly  :  DOB = Date Of Birth) : 

    (date_diff(DOB,date_now()))/(1000*60*60*24*365)
    Please take a look at the process in attached file...

    Regards,

    Lionel
  • Options
    CelineSCelineS Member Posts: 6 Newbie
    Thank you Lionel. 
Sign In or Register to comment.