I am trying to display the p-value of a test produced in a gtsummary table in scientific format. So I want my p-value's to look like 2e-16 instead of <0.001. See table below.
Any suggestions how I can do this using the gtsummary package? I have put together a reproducible code below:
# download pacman package if not installed, otherwise load it
if(!require(pacman)) install.packages(pacman)
# loads relevant packages using the pacman package
pacman::p_load(
tidyverse, # for pipes
gtsummary) # for tables
# 2by2 table
trial %>%
tbl_cross(row = trt,
col = response) %>%
add_p()

