Skip to content

Instantly share code, notes, and snippets.

@hdbt
Last active November 13, 2023 10:02
Show Gist options
  • Save hdbt/cff8e4d05a42c799ba37353c34c641ac to your computer and use it in GitHub Desktop.
Save hdbt/cff8e4d05a42c799ba37353c34c641ac to your computer and use it in GitHub Desktop.
align decimal points according to model length (modelsummary helper function)
# function to add the right amount of d for align argument of modelsummary according to models
align_d <- function(models) rep("d", length(models)) |> c("l", ... = _) |> paste0(collapse = "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment