I really need help on how to approach a problem. I have a data set that looks like this..
Name Sex Total
Anna F 10
Jamie M 2
Jamie F 7
Mike M 13
Sam F 6
Sam M 3
structure(list(Name = c("Anna", "Jamie", "Jamie", "Mike", "Sam", "Sam"),
Sex = c("F", "M", "F", "M", "F", "M"), Total = c(10L, 2L, 7L, 13L, 6L, 3L)),
.Names = c("Name", "Sex", "Total"), class = "data.frame", row.names = c(NA, -6L))
What I want to do is get the names that are both male and female names, so the results will look like..
Name Sex Total
Jamie M 2
Jamie F 7
Sam M 3
Sam F 6
But I'm really stumped on how to approach it.