knitr::opts_chunk$set(echo = TRUE)
targets::tar_load(DF_analysis)

Table 1

Table 1 with {median} ({p25}, {p75})", "{min}, {max}:

table1 = 
  DF_analysis %>%
  select(-id) %>%
  tbl_summary(
    type = all_continuous() ~ "continuous2",
    statistic = all_continuous() ~ c("{median} ({p25}, {p75})", "{min}, {max}"),
    missing = "ifany"
  ) 

table1


gorkang/jsPsychHelpeR documentation built on Oct. 15, 2024, 8 a.m.