Splitting the gender variable up between male and female

Hi all, I am new to r studio
I am using tidyverse to aid me in my formulas and would like it to be similar for the answer.
What command would I use to split the Gender variable up into male and female?


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

(gndr_tbl <- tibble(gndr=sample(c("m","f"),

(gndr_tbl_split <- group_split(gndr_tbl,


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.