From 05757c24911d63bcf11da6eef1ac88b2ea6240e1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 10 May 2024 11:19:11 +0200 Subject: [PATCH] Update prop.R --- R/prop.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/prop.R b/R/prop.R index b656f5d..6c98054 100644 --- a/R/prop.R +++ b/R/prop.R @@ -78,7 +78,8 @@ prop <- function(data, ..., weights = NULL, na.rm = TRUE, digits = 4) { if (!is.data.frame(data)) { insight::format_error("`data` needs to be a data frame.") } - .proportions(data, dots = list(...), weight.by = weights, na.rm, digits, multi_logical = FALSE) + dots <- match.call(expand.dots = FALSE)[["..."]] + .proportions(data, dots = dots, weight.by = weights, na.rm, digits, multi_logical = FALSE) } @@ -89,7 +90,8 @@ props <- function(data, ..., na.rm = TRUE, digits = 4) { if (!is.data.frame(data)) { insight::format_error("`data` needs to be a data frame.") } - .proportions(data, dots = list(...), NULL, na.rm, digits, multi_logical = TRUE) + dots <- match.call(expand.dots = FALSE)[["..."]] + .proportions(data, dots = dots, NULL, na.rm, digits, multi_logical = TRUE) }