Options

In my data, age are in days format. How to change it to normal real age? What operator shall I use?

sarahmaesarahmae Member Posts: 2 Newbie

Answers

  • Options
    BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Hi!

    You can use Generate Attributes and enter arbitrary formulas for calculations and using functions. 

    Age in days / 365.24 would be the number of years. You could use floor() to truncate it to the smaller integer or round() if that works better for your use case.

    If you enter the name of an existing attribute (age) in the "new" attribute name, it will be overwritten with the calculation result. This might be what you want here.

    Regards,
    Balázs
Sign In or Register to comment.