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