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

sarahmae
sarahmae New Altair Community Member
edited November 2024 in Community Q&A
Tagged:

Answers

  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    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