Skip to content

Nest a variable under a specific level/value of another variable #879

Answered by Melkiades
tt05-hod asked this question in Q&A
Discussion options

You must be logged in to vote

this is what you are looking for:

basic_table() |>
  split_rows_by("Gender_Identity", label_pos = "visible") |>
  summarize_row_groups(format = "xx") |>
  analyze(vars = c("Self_Describe")) |>
  analyze(vars = c("Age_Group", "Race"), nested = FALSE) |>
  build_table(survey_data) %>% 
  trim_rows()

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tt05-hod
Comment options

Answer selected by tt05-hod
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants