0

Appreciate any help to fix this error. Thank you! Code I am using:

adata_sl %>% 
  select(BLADA_FL,PREVADA_FL,TRTP) %>% #mutate(BLADA_FL=ifelse(BLADA_FL=="Negative",NA_character_,BLADA_FL)) %>% 
  tbl_summary(value=list(PREVADA_FL~"Positive"),
              label=list(BLADA_FL~"Baseline",PREVADA_FL~"Prevalence"),
              missing_text = "Missing",by=TRTP) %>%
  add_overall(last=T,col_label="**Overall** \n (N={n})") %>% 
  modify_header(list(label ~ "**outcome**"),stat_by = "**{level}** \n (N={n})") %>% 
  modify_footnote(everything() ~ NA) %>% 
  as_gt() %>% 
  tab_options(table.font.size="small")

Error I am getting: ✖ There was an error processing column "stat_0"--likely a glue syntax error. ℹ The following fields are available to insert via glue syntax: column (), N () Error: Error processing modify_*() for column 'stat_0'.

nmfsci
  • 5
  • 2

0 Answers0