Skip to content

Commit

Permalink
pctformat
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Sep 14, 2020
1 parent b7afc8c commit 0b4c160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/datasummary_skim.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ datasummary_skim <- function(data,
stop("Cannot summarize more than 50 variables at a time.")
}

pctformat = function(x) sprintf("%.1f", x)
pctformat = function(x) sprintf(fmt, x)
f <- All(dat_new, numeric=FALSE, factor=TRUE, logical=TRUE, character=TRUE) ~
(N = 1) * Format(digits=0) + (`%` = Percent()) * Format(pctformat())

Expand Down

0 comments on commit 0b4c160

Please sign in to comment.