I'm new to R studio, studying it for a maths module in year 2. I've been set a question "run a command to display all of the rows where the contestant is male". I've tried using the subset function and the $, but I cant seem to figure it out.
Age = c(25, 23, 33, 28, 35, 31, 25, 29)
Gender = c(Male, Male, Female, Female, Male, Female, Female, Female)
Cinema = c(T, T, T, T, F, F, T, F)
Shopping = c(F, F, F, T, T, T, F, F)
df = data.frame(Age, Gender, Cinema, Shopping) #data frame of dating show data
This is the date frame, can anyone point me in the right direction?