Calculating a mean from a specific population within a data set

Please share a reproducible example, so we can better help you

reprex : What’s a repr oducible ex ample ( reprex for short) and how do I do one?