diff --git a/R/rescale_weights.R b/R/rescale_weights.R index 162863609..12b839cc2 100644 --- a/R/rescale_weights.R +++ b/R/rescale_weights.R @@ -97,7 +97,11 @@ #' ) #' } #' @export -rescale_weights <- function(data, by, probability_weights, nest = FALSE, method = "carle") { +rescale_weights <- function(data, + by = NULL, + probability_weights = NULL, + nest = FALSE, + method = "carle") { if (inherits(by, "formula")) { by <- all.vars(by) } diff --git a/man/rescale_weights.Rd b/man/rescale_weights.Rd index 90e0727eb..30f62fe6c 100644 --- a/man/rescale_weights.Rd +++ b/man/rescale_weights.Rd @@ -4,7 +4,13 @@ \alias{rescale_weights} \title{Rescale design weights for multilevel analysis} \usage{ -rescale_weights(data, by, probability_weights, nest = FALSE, method = "carle") +rescale_weights( + data, + by = NULL, + probability_weights = NULL, + nest = FALSE, + method = "carle" +) } \arguments{ \item{data}{A data frame.}