Skip to content

Commit

Permalink
Update R/rescale_weights.R
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Bacher <[email protected]>
  • Loading branch information
strengejacke and etiennebacher authored Dec 18, 2024
1 parent 749cb2f commit d085d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rescale_weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ rescale_weights <- function(data,
}

if (!all(by %in% colnames(data_tmp))) {
dont_exist <- by[which(!by %in% colnames(data_tmp))]
dont_exist <- setdiff(by, colnames(data_tmp))
insight::format_error(
paste0(
"The following variable(s) specified in `by` don't exist in the dataset: ",
Expand Down

0 comments on commit d085d8c

Please sign in to comment.