search for: pl_vars

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

Did you mean: allvars
2023 Jun 29
0
Processing a hierarchical string name
...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) %>% .$label %>% str_replace("^ !!", &quot...