I have a problem with gtsummary. I made a first table without the by argument and all is working well. But when I add the by argument, it fails with this error : ! Failed to evaluate glue component {n}
Here is my code :
data$vasc <- as.factor(ifelse(data$test == 1, 1, 0))
#working
table1 <- data %>% tbl_summary(missing='no') %>% add_n() %>% bold_labels()
#not working
table2 <- data %>% tbl_summary(
by=vasc, missing='no') %>% add_n() %>% bold_labels()
Do you have an idea ?
Thank you