Skip to content

Commit

Permalink
round weighted N
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 12, 2023
1 parent 4651aac commit 995fb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/means_by_group.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ means_by_group.data.frame <- function(x,
out_weights <- stats::aggregate(data["weights"], data["group"], sum)

colnames(out) <- c("Category", "Mean")
out$N <- out_weights[[2]]
out$N <- round(out_weights[[2]])
out$SD <- out_sd[[2]]
out$p <- out$CI_high <- out$CI_low <- NA

Expand Down

0 comments on commit 995fb79

Please sign in to comment.