title: How to find the median of Males and Females separately from a dataset in R?
body: <p>From the following data, I want to extract mean for Males and Females separately. How do I achieve this in R??</p>
  
  <p><img src="https://i.stack.imgur.com/t3IqH.jpg" alt="enter image description here"></p>