Hey,
You might be looking for the unite command from the tidyr package.
comb %>%
unite(rel_gender, c("relationship", "gender"))
Hope this helps.
Just as a note for future questions - it's easier if you provide a minimal replicable example with the reprex package.