Hypothesis test of proportion from a table

I have a column with 50 data points regarding gender of the respondent (male or female). Is there a direct way to calculate if the number of males in the dataset is significantly more than number of females?

I can calculate the number of males and females and then use prop.test. But is there something direct?