Skip to content

Commit 894f093

Browse files
authored
Merge branch 'main' into strengejacke/issue594
2 parents f83595c + c269ffb commit 894f093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/collapse_by_group.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ collapse_by_group <- function(grid, model, collapse_by = NULL, residuals = FALSE
7777

7878
if (nrow(rawdata) == nrow(model_data)) {
7979
rawdata$random <- factor(model_data[[collapse_by]])
80-
} else if (collapse_by %in% colnames(rowdata)) {
80+
} else if (collapse_by %in% colnames(rawdata)) {
8181
rawdata$random <- factor(rawdata[[collapse_by]])
8282
} else {
8383
insight::format_error(paste0("Could not find `", collapse_by, "` column."))

0 commit comments

Comments
 (0)