Skip to content

Commit

Permalink
Add examples of col_vars and col_decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Jun 28, 2024
1 parent ecd686c commit 2bced60
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ summary.fixed_design <- function(object, ...) {
#'
#' # Customize the variables to be summarized for each analysis
#' x_ahr %>% summary(analysis_vars = c("n", "event"), analysis_decimals = c(1, 1))
#'
#' # Customize the digits for the columns
#' x_ahr %>% summary(col_decimals = c(z = 4))
#'
#' # Customize the columns to display
#' x_ahr %>% summary(col_vars = c("z", "~hr at bound", "nominal p"))
#'
#' # Customize columns and digits
#' x_ahr %>% summary(col_vars = c("z", "~hr at bound", "nominal p"),
#' col_decimals = c(4, 2, 2))
#' }
#'
#' # Example 2 ----
Expand Down
10 changes: 10 additions & 0 deletions man/summary.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2bced60

Please sign in to comment.