I have two populations

population 1:

n=160, male=14, female=146

population 2:

n=150, male=16, female=134

How can I test if the two populations are significantly different?

I guess I have to use a t-test for two proportions, but I don't know how to do this with R