title: How do I exclude the male rows of the data frame, DF, in R, without using the following code; Female <- DF[(DF$Gender == 'Female'),]
body: <p>This is my attempt at the question, but i am not sure what i am doing wrong.</p>
  
  <pre><code>Gender &lt;- c('Male','Male','Male', 'Female', 'Female', 'Female')
  Height &lt;- c('183', '180', '185', '170', '165', '167')
  
  DF &lt;- data.frame(Gender, Height)
  
  Male &lt;- DF[(DF$Gender == 'Male'),]
  
  Exclude_male &lt;- DF[!Male]
  </code></pre>