Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix n_total after create_table_group_x_variable #33

Open
RedEggplant1 opened this issue Oct 1, 2024 · 0 comments
Open

fix n_total after create_table_group_x_variable #33

RedEggplant1 opened this issue Oct 1, 2024 · 0 comments

Comments

@RedEggplant1
Copy link

Coucou :)

I use create_table_group_x_variable by specifying value_columns =c("stat", "n_total"), because that's how I want to present the output: with n_total for each question.

The problem is that when you do that, if for a certain disaggregation no respondent selected the response option, the value is NA (which is normal), but n_total is NA. Instead, n_total should be equal to the n_total of this disaggregation that answered to that question, even if that specific response option is not selected.

image

Second, nice to have, if there was a possibility when we chose to show n_total to only keep one column n_total per question, and it being located after all % for that question, it would be really smooth (for now there is one n_total per response option). I m coding some tiny stuff on my side so that it is done that way but it s always nice to mainstream this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant