Skip to content

Commit

Permalink
Fixes error on NA by NA
Browse files Browse the repository at this point in the history
Closes #108
  • Loading branch information
sda030 committed Aug 24, 2024
1 parent 9b2ed3d commit fdf6271
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/summarize_cat_cat_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
# Helper function to create overarching factor variable for the response categories column
category_var_as_fct <-
function(data_summary, fct_unions) {

data_summary$.category <- factor(x = data_summary$.category,
levels = fct_unions,
labels = fct_unions)
labels = fct_unions,
exclude = NULL)
data_summary
}

Expand Down

0 comments on commit fdf6271

Please sign in to comment.