I have the next dataframe
obs1 obs2 obs3 zone
1 0 1 Rural
1 1 1 Rural
0 1 1 Urban
1 0 0 Urban
0 1 0 Rural
I am trying to get something like this
Mean Rural 0.6666
Mean Urban 0.5
Is that possible?