Skip to content

Commit

Permalink
Added drop=FALSE when subsetting the coldata
Browse files Browse the repository at this point in the history
  • Loading branch information
StijnVandenbulcke committed May 7, 2024
1 parent 3590a80 commit 8373e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/msqrob.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ msqrobLmer <- function(y,
}

#Select only the relevant columns
data <- data[colnames(data) %in% all.vars(formula)]
data <- data[,colnames(data) %in% all.vars(formula), drop = FALSE]

y <- split.data.frame(y, featureGroups)

Expand Down

0 comments on commit 8373e72

Please sign in to comment.