Skip to content

Commit

Permalink
fix tableby vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
eheinzen committed Apr 1, 2022
1 parent 46ac59b commit 0a507bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/tableby.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ dollarmean <- function(x, na.rm = TRUE, ...) {
if(na.rm && allNA(x)) {
as.tbstat(NA_real_)
} else {
out <- arsenal_mean(x, na.rm = na.rm, ...)
attr(out, "fmt") <- "${y}"
out <- meansd(x, na.rm = na.rm, ...)
attr(out, "fmt") <- "${y[1]}"
out
}
}
Expand Down

0 comments on commit 0a507bb

Please sign in to comment.