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

Add an argument that will allow the user to choose to the names of the analysis varaibles in a column or in the column name #32

Open
mbcann01 opened this issue Aug 20, 2020 · 0 comments

Comments

@mbcann01
Copy link
Member

mbcann01 commented Aug 20, 2020

The current behavior is to have the names of the analysis variables in a column and use generic column names like "row_var" and "col_var". This is usually the behavior I want because it makes it easy to combine multiple results tables into a single table for presentation (e.g. Table 1). However, there are times (e.g., when passing results to ggplot) that it can be useful to have the analysis variable as the column name containing its categories.

Sun Study example:

map_student %>% 
  # Complete case analysis
  filter(!is.na(ss_application_f)) %>% 
  freq_table(period_f, ss_application_f) %>% 
  rename(period = row_cat, ss_application = col_cat) %>% 
  select(period, ss_application, percent_row) %>% 
  ggplot(aes(period, percent_row)) +
    geom_point()
@mbcann01 mbcann01 changed the title Add a group names option Add an argument that will allow the user to choose to the names of the analysis varaibles in a column or in the column name Aug 20, 2020
@mbcann01 mbcann01 removed this from To do in Bug fixes and enhancements Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Develop Next
Development

No branches or pull requests

1 participant