Using tidyr, you can pivot the data into long format, then uncount it.
Assuming your data is called df, you could do that as follows:
library(tidyr)
pivot_longer(df, -Gender, names_to = 'Result') %>%
uncount(value)
#> # A tibble: 6 x 2
#> Gender Result
#> <chr> <chr>
#> 1 Male Yes
#> 2 Male Yes
#> 3 Male No
#> 4 Female Yes
#> 5 Female No
#> 6 Female No
Data used, taken from question and put into reproducible format
df <- structure(list(Gender = c("Male", "Female"), Yes = 2:1, No = 1:2),
class = "data.frame", row.names = c(NA, -2L))