Last active
November 13, 2023 10:02
-
-
Save hdbt/cff8e4d05a42c799ba37353c34c641ac to your computer and use it in GitHub Desktop.
align decimal points according to model length (modelsummary helper function)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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