ddsjoberg / gtsummary

Presentation-Ready Data Summary and Analytic Result Tables
http://www.danieldsjoberg.com/gtsummary
Other
1.04k stars 114 forks source link

Error in `pier_*` functions when retrieved names are not unique #1765

Closed Melkiades closed 1 month ago

Melkiades commented 3 months ago

Goal: add a warning and fnc to check unique names (very minimal fast function). Reproducible example:

library(gtsummary)
trial1 <- head(trial)
bind_ard(
  ard_continuous(trial1, variables = c(age, marker)),
  ard_categorical(trial1, variables = c(age, marker)),
  ard_attributes(trial1, variables = c(age, marker))
) |>
  brdg_wide_summary(
    variables = c("age", "marker"),
    statistic = list(age = c("{mean}", "{sd}", "{n}"), marker = c("{mean}", "{sd}", "{n}")),
    type = list(age = "continuous", marker = "continuous")
  )
Melkiades commented 1 month ago

Issue have been resolved in 2.0.1