Skip to content

Commit 162ab39

Browse files
Merge branch 'main' of github.com:vincentarelbundock/modelsummary into main
2 parents 6ee3b54 + da4fc48 commit 162ab39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/datasummary_balance.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ datasummary_balance_factor <- function(rhs, data, data_norhs, any_numeric) {
174174

175175
# formula
176176
f_fac <- 'All(data_norhs, factor = TRUE, numeric = FALSE) ~
177-
Factor(%s) * (Heading("N")*1 * Format(digits = 0) +
177+
Factor(%s) * (Heading("N")*1 * Format() +
178178
Heading("%%") * Percent("col") * Format(pctformat()))'
179179
f_fac <- sprintf(f_fac, rhs)
180180

R/datasummary_skim.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ datasummary_skim_categorical <- function(
337337

338338
pctformat <- function(x) rounding(x, fmt)
339339
f <- All(dat_new, numeric = FALSE, factor = TRUE, logical = TRUE, character = TRUE) ~
340-
(N = 1) * Format(digits=0) + (`%` = Percent()) * Format(pctformat())
340+
(N = 1) * Format() + (`%` = Percent()) * Format(pctformat())
341341

342342
out <- datasummary(
343343
formula = f,

0 commit comments

Comments
 (0)