Skip to content

Commit

Permalink
Update add_stat_label() (#1544)
Browse files Browse the repository at this point in the history
* Trying to make the help text more concise and clear.

* More concise and more accurate.

* Update DESCRIPTION

---------

Co-authored-by: Daniel Sjoberg <[email protected]>
  • Loading branch information
dereksonderegger and ddsjoberg authored Oct 8, 2023
1 parent bbbc198 commit 603d542
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/add_stat_label.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
#' tbl_merge(list(tbl1, tbl2))
#' ```
#'
#' The addition of the new `"stat_label"` column requires a default
#' labels for categorical variables, which is `"No. (%)"`. This
#' can be changed to either desired text or left blank using `NA_character_`.
#' The blank option is useful in the `location="row"` case to keep the
#' output for categorical variables identical what was produced without
#' a `"add_stat_label()"` function call.
#'
#' @param x Object with class `tbl_summary` from the [tbl_summary] function
#' or with class `tbl_svysummary` from the [tbl_svysummary] function
#' @param location location where statistic label will be included.
Expand Down
7 changes: 7 additions & 0 deletions man/add_stat_label.Rd

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

0 comments on commit 603d542

Please sign in to comment.