search for: bg3_race

Displaying 1 result from an estimated 1 matches for "bg3_race".

2023 Jun 29
0
Processing a hierarchical string name
Ivan and Bert, thank you so much for your help. Ivan, your solution worked perfectly. I didn't really understand how to do string processing on a vector of strings, and your solution demonstrated it for me. I modified it to work with the tidyverses' stringr library in this way: bg3_race_sum <- bg3_race %>% left_join(pl_vars, by=c("variable" = "name")) %>% group_by(variable) %>% summarize(count = sum(value)) %>% left_join(pl_vars, by=c("variable" = "name")) %>% filter(count > 0) %>% .$labe...