Two sample test from same table

#1
I have a table with 3 columns - the respondent serial number, the gender (male / female) and the height. I want to test if the males are taller than the females. How can I do this in R?