Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 31, 2024
1 parent 02283ee commit 71795b5
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 @@ -209,7 +209,7 @@ rescale_weights <- function(data,
),
.misspelled_string(colnames(data_tmp), dont_exist, "Possibly misspelled?")
)
} else {
} else if (is.null(by)) {
# if `by` = NULL, we create a dummy group
by <- "tmp_kish_by"
data_tmp[[by]] <- 1
Expand Down

0 comments on commit 71795b5

Please sign in to comment.