Hello ! How to save table after mutate function and convert the negative values to positive ?

Final_data %>% mutate(final_age_data = birthyear-2023)

*How to save the new data table after mutate function ?

  • The calculation "birthyear-2023" is coming in -values, how to convert it to positive values ?
new_table <- Final_data %>% mutate(final_age_data = 2023-birthyear)
1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.