-1

I have a dataset (in photo) where for the variable "age" I have different ways with which the variable is distributed. Also in the dataset I also have the identification code for each province "RILPROV". What I need to get is an aggregate average age for each province. I need to aggregate mean for ID provinces. What can i do?
So in practice get only one "age" mode that is given by the average of all and is grouped by identification code of the province. In practice, each province will have to pay only one average age value.

In this photo you find the dataset in object of this answer. enter image description here

peppa
  • 1
  • 1
  • 1
    Welcome to Stack Overflow! Can you please edit your question into an [mcve] to make it easier for others to help? – Stedy Jun 01 '22 at 21:26
  • Hi @Stedy! I put directly the print of mine situation. I haven't code, because i'm here to find the good code to work in the solution at the problem that i'm presenting in this post.Thank you! – peppa Jun 01 '22 at 22:29

0 Answers0