Skip to content

Commit

Permalink
bugfix in ae_table_grade()
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Jul 31, 2024
1 parent fa9c499 commit 0bbd5ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/ae_table_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,9 @@ ae_table_grade = function(

rex = type %>% paste(collapse="|") %>% paste0("^(", ., ")")

percent_pattern = if(isTRUE(percent)) "{n} ({scales::percent(n/n_col,1)})"
percent_pattern = if(isTRUE(percent)) "{n} ({scales::percent(n/n_col_na,1)})"
else if(percent=="only") "{n/n_col}" else "{n}"


rtn = df %>%
summarise(

Expand Down

0 comments on commit 0bbd5ed

Please sign in to comment.