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?
Hi!
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:
library(tidyverse)
set.seed(42)
(gndr_tbl <- tibble(gndr=sample(c("m","f"),
size=20,
replace=TRUE)))
(gndr_tbl_split <- group_split(gndr_tbl,
gndr))
?
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.