I'm trying to use tbl_summary in R. I need to pass as input variable the list of columns to use in "add_p (include = ... )" Is there a way for do it ???
thanks in advance A
tmp=c(-age, -stage, -grade)
trial %>%
select(trt, stage, age, grade, response) %>%
tbl_summary(by = trt) %>%
add_p( include = tmp )
